-
Notifications
You must be signed in to change notification settings - Fork 9
47 lines (39 loc) · 1.4 KB
/
deploy.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: "Deploy and Pin"
on:
push:
jobs:
deploy:
runs-on: "ubuntu-latest"
steps:
- name: "Setup: checkout the repo"
uses: "actions/checkout@v3"
- name: "Dependencies: setup node"
uses: "actions/setup-node@v3"
with:
cache: "yarn"
node-version: "lts/*"
- name: "Dependencies: install"
run: "yarn install --immutable"
- name: "List: build project"
run: "yarn build"
- name: "IPFS: upload bundle and pin"
id: upload
uses: aquiladev/ipfs-action@master
with:
path: "build/sablier-community.tokenlist.json"
service: "infura"
pinName: "tokenlist"
infuraProjectId: ${{ secrets.INFURA_PROJECT_ID }}
infuraProjectSecret: ${{ secrets.INFURA_PROJECT_SECRET }}
- name: "IPFS: hash summary"
run: |
echo "Successfully deployed on IPFS: [${{ steps.upload.outputs.hash }}](https://cloudflare-ipfs.com/ipfs/${{
steps.upload.outputs.hash }})"
- name: "Cloudflare: update DNS with latest IPFS hash"
env:
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
CLOUDFLARE_GATEWAY_ID: ${{ secrets.CLOUDFLARE_GATEWAY_ID }}
uses: sablier-labs/action-cloudflare-web3-gateway@main
with:
cid: ${{ steps.upload.outputs.hash }}