Skip to content

Commit 2700aec

Browse files
authored
New: Add GitHub Actions workflow to deploy v5 vanilla course to GitHub Pages (fix #3479)
1 parent d9fe3c4 commit 2700aec

File tree

2 files changed

+36
-1
lines changed

2 files changed

+36
-1
lines changed
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
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+

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
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

0 commit comments

Comments
 (0)