File tree Expand file tree Collapse file tree 2 files changed +36
-1
lines changed
Expand file tree Collapse file tree 2 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Build and Deploy to GitHub Pages
2+
3+ on :
4+ workflow_dispatch :
5+ release :
6+ types : [published]
7+ schedule :
8+ - cron : ' 0 7 * * 2' # Runs every Tuesday at midnight MST (7am UTC)
9+
10+ jobs :
11+ build-and-deploy :
12+ runs-on : ubuntu-latest
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Setup Node.js
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : ' lts/*'
20+
21+ - name : Install dependencies
22+ run : npm ci
23+
24+ - name : Build course
25+ run : grunt build
26+
27+ - name : Deploy to GitHub Pages
28+ uses : peaceiris/actions-gh-pages@v4
29+ with :
30+ deploy_key : ${{ secrets.RELEASES_TOKEN }}
31+ external_repository : adaptlearning/adaptlearning.github.io
32+ publish_branch : master
33+ publish_dir : ./build
34+ destination_dir : v5demo
35+
Original file line number Diff line number Diff line change 1616
1717 - uses : actions/setup-node@v4
1818 with :
19- node-version : ' 16 '
19+ node-version : ' lts/* '
2020 cache : ' npm'
2121
2222 - name : Installing Environment
You can’t perform that action at this time.
0 commit comments