-
Notifications
You must be signed in to change notification settings - Fork 8
50 lines (42 loc) · 1.44 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
48
49
50
name: "Deploy and Pin"
on:
workflow_dispatch:
push:
branches:
- "main"
jobs:
test:
uses: "./.github/workflows/tests.yml"
deploy:
needs: "test"
runs-on: "ubuntu-latest"
steps:
- name: "Check out the repo"
uses: "actions/checkout@v4"
- name: "Install Bun"
uses: "oven-sh/setup-bun@v1"
- name: "Install Node.js dependecies"
run: "bun install --frozen-lockfile"
- name: "Build project"
run: "bun run 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: "Update Cloudflare DNS with latest IPFS hash"
env:
CLOUDFLARE_GATEWAY_ID: ${{ secrets.CLOUDFLARE_GATEWAY_ID }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
CLOUDFLARE_ZONE_ID: ${{ secrets.CLOUDFLARE_ZONE_ID }}
uses: "sablier-labs/action-cloudflare-web3-gateway@main"
with:
cid: ${{ steps.upload.outputs.hash }}