-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: simplified workflow to add next to ipfs (#981)
Co-authored-by: Hugo Dias <mail@hugodias.me>
- Loading branch information
1 parent
ba5c325
commit 3bcdd93
Showing
2 changed files
with
29 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Add to IPFS | ||
|
||
on: [push] | ||
|
||
jobs: | ||
add-next-to-ipfs: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: actions/setup-go@v2 | ||
with: | ||
go-version: '1.14.4' | ||
|
||
- uses: actions/setup-node@v2-beta | ||
with: | ||
node-version: '12' | ||
|
||
- run: npm install | ||
- run: npm run build | ||
|
||
- uses: ipfs-shipyard/ipfs-github-action@v1.0.0 | ||
with: | ||
path_to_add: public | ||
cluster_host: /dnsaddr/cluster.ipfs.io | ||
cluster_user: ${{ secrets.CLUSTER_USER }} | ||
cluster_password: ${{ secrets.CLUSTER_PASSWORD }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters