Skip to content

Commit

Permalink
feat: update dnslink to deploy (#982)
Browse files Browse the repository at this point in the history
  • Loading branch information
olizilla committed Jul 20, 2020
1 parent dcf452a commit 20dbc5e
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:

- uses: actions/setup-go@v2
with:
go-version: '1.14.4'
go-version: '1.14'

- uses: actions/setup-node@v2-beta
with:
Expand All @@ -19,11 +19,26 @@ jobs:
- run: npm install
- run: npm run build

# Pin the built site to ipfs-cluster, output the cid as `steps.ipfs.outputs.cid`
# see: https://github.com/ipfs-shipyard/ipfs-github-action
- uses: ipfs-shipyard/ipfs-github-action@v1.0.0
id: ipfs
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 }}

- run: echo /ipfs/${{ steps.ipfs.outputs.cid }}

- run: echo ${{ github.ref }}

# This branch updates a dnslink for a domain if the current branch should be deployed to prod.
# see https://github.com/ipfs-shipyard/js-dnslink-dnsimple
- run: npx dnslink-dnsimple --domain beta.spec.filecoin.io --link /ipfs/${{ steps.ipfs.outputs.cid }}
env:
DNSIMPLE_TOKEN: ${{ secrets.DNSIMPLE_TOKEN }}
# TODO: change to master once merged.
if: github.ref == 'refs/heads/feat/new-setup'

0 comments on commit 20dbc5e

Please sign in to comment.