Update ipfs action to use infura.

This commit is contained in:
Kavin 2022-08-14 23:52:15 +05:30
parent 04ff822495
commit 60193bd027
No known key found for this signature in database
GPG Key ID: 49451E4482CC5BCD

View File

@ -18,14 +18,13 @@ jobs:
cache: "yarn"
- run: yarn install --prefer-offline
- run: yarn build && sed -i 's/fonts.gstatic.com/fonts.kavin.rocks/g' dist/assets/*.css && cp dist/index.html dist/ipfs-404.html
- uses: aquiladev/ipfs-action@v0.2.1
- uses: aquiladev/ipfs-action@v0.3.0-alpha.1
id: ipfs-add
with:
path: ./dist
service: pinata
pinataKey: ${{ secrets.PINATA_API_KEY }}
pinataSecret: ${{ secrets.PINATA_API_SECRET }}
pinataPinName: piped
service: infura
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }}
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }}
- name: Update DNSLink
run: npx dnslink-cloudflare -d kavin.rocks -l /ipfs/${{ steps.ipfs-add.outputs.hash }} -r _dnslink.piped-ipfs
env: