diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 2890b8c8..e151be39 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -32,15 +32,26 @@ jobs: - name: Generate build artifact run: node scripts/build.mjs - - name: Sync to IPFS - id: upload - uses: nymmrx/ipfs-deploy@master + - name: Upload to IPFS + uses: aquiladev/ipfs-action@v0.3.0-alpha.1 + id: ipfs with: - path: "./build" - pin-name: Yearn Meta - pinata-key: ${{ secrets.PINATA_KEY }} - pinata-secret: ${{ secrets.PINATA_SECRET }} - cloudflare-zone-id: ${{ secrets.CLOUDFLARE_ZONE }} - cloudflare-secret: ${{ secrets.CLOUDFLARE_SECRET }} - record-domain: yearn.network - record-name: _dnslink.meta + path: './build/' + host: ${{ secrets.IPFS_HOST }} + port: ${{ secrets.IPFS_PORT }} + protocol: http + + - name: Get Timestamp Action + uses: nanzm/get-time-action@v1.1 + id: time + with: + format: 'YYYYMMDDHHmmss' + + - name: Create Release + uses: Hs1r1us/Release-AIO@v1.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + with: + tag_name: "${{ steps.time.outputs.time }}/${{ steps.ipfs.outputs.hash }}" + release_name: ${{ steps.ipfs.outputs.hash }} + body: '[ipfs://${{ steps.ipfs.outputs.hash }}](ipfs://${{ steps.ipfs.outputs.hash }}) - [ipfs.io](https://ipfs.io/ipfs/${{ steps.ipfs.outputs.hash }})' \ No newline at end of file