Skip to content

Build and Deploy to GitHub Pages #3

Build and Deploy to GitHub Pages

Build and Deploy to GitHub Pages #3

name: Build and Deploy to GitHub Pages
on:
workflow_dispatch:
release:
types: [published]
schedule:
- cron: "0 7 * * 2" # Runs every Tuesday at midnight MST (7am UTC)
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"
- name: Install dependencies
run: npm ci
- name: Build course
run: grunt build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
personal_token: ${{ secrets.RELEASES_TOKEN }}
external_repository: adaptlearning/adaptlearning.github.io
publish_branch: master
publish_dir: ./build
destination_dir: v5demo