File tree Expand file tree Collapse file tree 1 file changed +48
-0
lines changed
Expand file tree Collapse file tree 1 file changed +48
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Massa DeWeb
2+
3+ on :
4+ # Allows you to run this workflow manually from the Actions tab
5+ workflow_dispatch :
6+
7+ env :
8+ GH_TOKEN : ${{ secrets.github_token }}
9+
10+ jobs :
11+ release :
12+ runs-on : ubuntu-latest
13+ if : github.ref_name == 'master' # restrict deploying only from master
14+
15+ steps :
16+ - name : Checkout repository 🛎️
17+ uses : actions/checkout@v4
18+
19+ - name : Setup Node version 🍀
20+ uses : actions/setup-node@v4
21+ with :
22+ node-version : ' 20'
23+
24+ - name : Install dependencies ⚙️
25+ run : npm ci
26+
27+ # Screenshots are removed to save space on Massa DeWeb
28+ - name : Build PWA 🛠️
29+ run : |
30+ npm run schema:generate
31+ npm run build
32+ rm -rf dist/screenshots
33+
34+ - name : Upload to Massa DeWeb 🌐
35+ env :
36+ SECRET_KEY : ${{ secrets.MASSA_ACCOUNT_SECRET_KEY }}
37+ CONTRACT_ADDRESS : ${{ secrets.MASSA_WEBSITE_CONTRACT_ADDRESS }}
38+ run : |
39+ npx @massalabs/deweb-cli upload ./dist \
40+ --node_url https://mainnet.massa.net/api/v2 \
41+ --address $CONTRACT_ADDRESS \
42+ --accept_disclaimer \
43+ --yes
44+
45+ - name : Save artifacts 💾
46+ uses : actions/upload-artifact@v4
47+ with :
48+ path : dist
You can’t perform that action at this time.
0 commit comments