File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : CI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ pull_request :
8+ branches :
9+ - main
10+
11+ jobs :
12+ build :
13+ runs-on : ubuntu-latest
14+
15+ steps :
16+ - name : Checkout code
17+ uses : actions/checkout@v2
18+
19+ - name : Set up Node.js
20+ uses : actions/setup-node@v2
21+ with :
22+ node-version : ' 20'
23+ - name : Clean cache
24+ run : npm cache clean --force
25+
26+ - name : Install Dependencies
27+ run : npm ci
28+
29+ - name : Archive npm failure logs
30+ uses : actions/upload-artifact@v2
31+ with :
32+ name : npm-logs
33+ path : /home/runner/.npm/_logs
34+
35+ - name : Build
36+ run : npm run build
37+
38+ - name : Deploy
39+ env :
40+ DT_APP_OAUTH_CLIENT_ID : ${{ secrets.CLIENT_ID }}
41+ DT_APP_OAUTH_CLIENT_SECRET : ${{ secrets.CLIENT_SECRET }}
42+ PLAYGROUND_APP_ID : my.tutorial.github.test
43+ run : npm run deploy
You can’t perform that action at this time.
0 commit comments