File tree Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Expand file tree Collapse file tree 1 file changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Deploy Github Pages
2+
3+ on :
4+ push :
5+ branches :
6+ - ' stac-manager'
7+
8+ env :
9+ PUBLIC_URL : ${{ vars.PUBLIC_URL }}
10+
11+ concurrency :
12+ group : ${{ github.workflow }}-${{ github.ref }}
13+ cancel-in-progress : true
14+
15+ permissions :
16+ contents : write
17+
18+ jobs :
19+ build :
20+ runs-on : ubuntu-latest
21+
22+ steps :
23+ - name : Checkout
24+ uses : actions/checkout@v4
25+
26+ - name : Use Node.js
27+ uses : actions/setup-node@v3
28+ with :
29+ node-version-file : ' .nvmrc'
30+
31+ - name : Cache node_modules
32+ uses : actions/cache@v3
33+ id : cache-node-modules
34+ with :
35+ path : node_modules
36+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
37+
38+ - name : Cache dist
39+ uses : actions/cache@v3
40+ id : cache-dist
41+ with :
42+ path : packages/client/dist
43+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
44+
45+ - name : Install
46+ run : npm install
47+
48+ - name : Build
49+ run : npm run all:build
50+
51+ deploy :
52+ runs-on : ubuntu-latest
53+ needs : build
54+
55+ steps :
56+ - name : Checkout
57+ uses : actions/checkout@v4
58+
59+ - name : Restore dist cache
60+ uses : actions/cache@v3
61+ id : cache-dist
62+ with :
63+ path : packages/client/dist
64+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ github.sha }}
65+
66+ - name : Deploy 🚀
67+ uses : JamesIves/github-pages-deploy-action@v4
68+ with :
69+ branch : gh-pages
70+ clean : true
71+ single-commit : true
72+ folder : packages/client/dist
You can’t perform that action at this time.
0 commit comments