diff --git a/.github/workflows/prod-release-ipfs.yml b/.github/workflows/prod-release-ipfs.yml index 14bf6edc..dec08a8f 100644 --- a/.github/workflows/prod-release-ipfs.yml +++ b/.github/workflows/prod-release-ipfs.yml @@ -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/ipfs-crust-action@v2.0.3 @@ -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 }}