Skip to content

Core: Add course mailing campaigns #553

Core: Add course mailing campaigns

Core: Add course mailing campaigns #553

Workflow file for this run

name: Deploy Docusaurus Site to GitHub Pages
on:
push:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/build-docs.yml"
pull_request:
branches:
- main
paths:
- "docs/**"
- ".github/workflows/build-docs.yml"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- uses: actions/setup-node@v7
with:
node-version: 24.19.0
cache: yarn
cache-dependency-path: docs/yarn.lock
- name: Install dependencies
run: |
cd docs
yarn install --immutable
- name: Build website
run: |
cd docs
yarn build
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v5
with:
path: docs/build
deploy:
if: github.event_name != 'pull_request'
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5