Skip to content
This repository has been archived by the owner on Aug 25, 2022. It is now read-only.

Commit

Permalink
feat: add IPFS deploy setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Majorfi committed Aug 22, 2022
1 parent 07732dc commit 5078fb7
Showing 1 changed file with 22 additions and 11 deletions.
33 changes: 22 additions & 11 deletions .github/workflows/sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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/[email protected]
id: time
with:
format: 'YYYYMMDDHHmmss'

- name: Create Release
uses: Hs1r1us/[email protected]
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 }})'

1 comment on commit 5078fb7

@vercel
Copy link

@vercel vercel bot commented on 5078fb7 Aug 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

yearn-meta – ./

meta.yearn.finance
meta.yearn.network
yearn-meta.yearn.farm
yearn-meta-git-master.yearn.farm

Please sign in to comment.