Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 7 additions & 8 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,30 @@ on:
release:
types: [published]
schedule:
- cron: '0 7 * * 2' # Runs every Tuesday at midnight MST (7am UTC)
- 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/*'
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:
deploy_key: ${{ secrets.RELEASES_TOKEN }}
personal_token: ${{ secrets.RELEASES_TOKEN }}
external_repository: adaptlearning/adaptlearning.github.io
publish_branch: master
publish_dir: ./build
destination_dir: v5demo

Loading