-
Notifications
You must be signed in to change notification settings - Fork 13
62 lines (59 loc) · 1.95 KB
/
ci-ipfs-test-production.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
51
52
53
54
55
56
57
58
59
60
61
62
name: IPFS Test Production
on:
workflow_dispatch:
permissions:
contents: write
env:
ipfs_folder: 'out'
jobs:
prepare-for-ipfs:
runs-on: ubuntu-latest
environment: IPFS Test Production
outputs:
ipfs_folder: ${{ env.ipfs_folder }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
fetch-tags: true
- name: Install node
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'yarn'
- name: Install dependencies
run: |
yarn install --frozen-lockfile
- name: Build
run: |
yarn build-ipfs
env:
DEFAULT_CHAIN: ${{ vars.DEFAULT_CHAIN }}
SUPPORTED_CHAINS: ${{ vars.SUPPORTED_CHAINS }}
WIDGET_API_BASE_PATH_FOR_IPFS: ${{ vars.WIDGET_API_BASE_PATH_FOR_IPFS }}
REWARDS_BACKEND_BASE_PATH: ${{ vars.REWARDS_BACKEND_BASE_PATH }}
WQ_API_BASE_PATH: ${{ vars.WQ_API_BASE_PATH }}
ETH_API_BASE_PATH: ${{ vars.ETH_API_BASE_PATH }}
PREFILL_UNSAFE_EL_RPC_URLS_1: ${{ secrets.PREFILL_UNSAFE_EL_RPC_URLS_1 }}
WALLETCONNECT_PROJECT_ID: ${{ secrets.WALLETCONNECT_PROJECT_ID }}
- uses: actions/upload-artifact@v4
with:
name: ${{ env.ipfs_folder }}
path: ${{ env.ipfs_folder }}
retention-days: 1
ipfs-pinning:
needs: prepare-for-ipfs
uses: lidofinance/actions/.github/workflows/ci-ipfs.yml@main
with:
ipfs_folder: ${{ needs.prepare-for-ipfs.outputs.ipfs_folder }}
current_branch: ${{ github.ref_name }}
IS_CREATE_RELEASE: false
FILEBASE_BUCKET_NAME: ${{ vars.FILEBASE_BUCKET_NAME }}
secrets:
W3S_TOKEN: ${{ secrets.W3S_TOKEN }}
W3S_PROOF: ${{ secrets.W3S_PROOF }}
GW3_TOKEN: ${{ secrets.GW3_TOKEN }}
GW3_ACCESS_KEY: ${{ secrets.GW3_ACCESS_KEY }}
FILEBASE_TOKEN: ${{ secrets.FILEBASE_TOKEN }}