Skip to content

Commit

Permalink
release for ipfs
Browse files Browse the repository at this point in the history
  • Loading branch information
XueMoMo committed Jul 2, 2024
1 parent 81c8a76 commit 8c28cbc
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions .github/workflows/prod-release-ipfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ jobs:

- name: Pin to IPFS
id: upload
uses: decooio/ipfs-upload-dapp-action@v1.0.0
uses: crustio/ipfs-upload-action@v2.0.5
with:
path: './out'
seeds: ${{ secrets.CRUST_SEEDS }}
gateway: 'https://gw.crustfiles.net'
params: 'cid-version=1'

- name: Place storage order on Crust
uses: crustio/[email protected]
Expand All @@ -37,13 +38,13 @@ jobs:
with:
cid: ${{ steps.upload.outputs.hash }}
seeds: ${{ secrets.CRUST_SEEDS }}

- name: Update DNS with new IPFS hash

- name: Create a release
uses: actions/create-release@v1
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
RECORD_DOMAIN: 'ipfs.crustfiles.io'
RECORD_NAME: '_dnslink'
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
uses: textileio/cloudflare-update-dnslink@0fe7b7a1ffc865db3a4da9773f0f987447ad5848
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cid: ${{ steps.upload.outputs.hash }}
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: |
IPFS CIDV1: ${{ steps.upload.outputs.hash }}

0 comments on commit 8c28cbc

Please sign in to comment.