-
Notifications
You must be signed in to change notification settings - Fork 2
48 lines (38 loc) · 1.01 KB
/
arweave-deploy.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
name: Arweave Deploy
on:
push:
branches:
- main
jobs:
Arweave-build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup Node.js environment for docs build
uses: actions/setup-node@v2
with:
node-version: "16"
- name: Install Yarn
run: npm install -g yarn
- name: Build Docs Portal
run: |
cd docs
yarn install --frozen-lockfile
yarn build
cd ..
- name: Setup Node.js v20 for deployment
uses: actions/setup-node@v2
with:
node-version: "20"
- name: Install dependencies for deployment script
run: |
cd docs
npm install permaweb-deploy --include=dev --force
cd ..
- name: Run deployment script
env:
DEPLOY_KEY: ${{ secrets.DEPLOY_KEY }}
DEPLOY_ANT_PROCESS_ID: ${{ secrets.DEPLOY_ANT_PROCESS_ID}}
run: |
cd docs
yarn deploy