-
Notifications
You must be signed in to change notification settings - Fork 0
60 lines (53 loc) · 1.59 KB
/
push_on_ipfs.yaml
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
name: Push on IPFS
on:
push:
branches:
- release/**
tags:
- "*"
jobs:
deploy:
runs-on: ubuntu-22.04
strategy:
fail-fast: true
max-parallel: 1
matrix:
include:
- site: "twentysix-website"
key: "fd4e1a4bdbc240f0b17c0e77aee16d01"
siteHomeUrl: "https://twentysix.cloud/"
- site: "aleph-website"
key: "5729da240c404db0a5adeed7b8d8ae9f"
siteHomeUrl: "https://aleph.im/"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install and Build
env:
FONTAWESOME_NPM_AUTH_TOKEN: ${{ secrets.FONTAWESOME_NPM_AUTH_TOKEN }}
NEXT_PUBLIC_BUILDER_API_KEY: ${{ matrix.key }}
SITE_HOME_URL: ${{ matrix.siteHomeUrl }}
run: |
npm config set "@fortawesome:registry" https://npm.fontawesome.com/
npm config set "//npm.fontawesome.com/:_authToken" FONTAWESOME_NPM_AUTH_TOKEN
npm ci
npm run build
touch out/.nojekyll
- uses: actions/upload-artifact@v3
with:
name: front-cms-${{ matrix.key }}
path: out/
- uses: actions/download-artifact@v3
with:
name: front-cms-${{ matrix.key }}
path: out/
- name: Push on IPFS
run: |
find .
pip install 'aioipfs>=0.6.2'
python3 ./scripts/push_on_ipfs.py
export IPFS_CID=$(python3 ./scripts/push_on_ipfs.py)
echo $IPFS_CID
echo "CID: $IPFS_CID" >> $GITHUB_STEP_SUMMARY