Skip to content

update gateway for pin to ipfs #88

update gateway for pin to ipfs

update gateway for pin to ipfs #88

name: Prod Release to IPFS
on:
push:
branches: [ main ]
workflow_dispatch:
jobs:
build-and-deploy:
if: github.repository == 'crustio/crust-files'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 18
uses: actions/setup-node@v2
with:
node-version: "18.19.0"
- name: Run install
run: yarn install
- name: Build
run: yarn export
- name: Pin to IPFS
id: upload
uses: decooio/[email protected]
with:
path: './out'
seeds: ${{ secrets.CRUST_SEEDS }}
gateway: 'https://gw.crustfiles.net'
- name: Place storage order on Crust
uses: crustio/[email protected]
continue-on-error: true
timeout-minutes: 2
with:
cid: ${{ steps.upload.outputs.hash }}
seeds: ${{ secrets.CRUST_SEEDS }}
- name: Update DNS with new IPFS hash
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
with:
cid: ${{ steps.upload.outputs.hash }}