-
-
Notifications
You must be signed in to change notification settings - Fork 137
43 lines (35 loc) · 1.04 KB
/
deploy-static.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
name: Deploy to CDN
on:
workflow_dispatch:
inputs:
tag:
description: 'Tag to deploy'
required: true
default: ''
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
ref: ${{ github.event.inputs.tag }}
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install Yarn 3
run: yarn set version 3.5.1
- name: Install Dependencies
run: yarn install --immutable
- name: Run deploy script
env:
tag: ${{ github.event.inputs.tag }}
run: bash ./scripts/deploy-static.sh
- name: Deploy dapps
uses: peaceiris/actions-gh-pages@068dc23d9710f1ba62e86896f84735d869951305
with:
personal_token: ${{ secrets.DEPLOY_TOKEN }}
# force_orphan: true # removing for now as it is incompatible with keep_files
keep_files: true # Important to keep the rest of the files deployed previously
publish_dir: ./deployments