Skip to content

Add SEM4 subjects and content (#118) #280

Add SEM4 subjects and content (#118)

Add SEM4 subjects and content (#118) #280

Workflow file for this run

# name: Deploy to GitHub Pages
#
# on:
# push:
# branches: [main]
# workflow_dispatch:
#
# permissions:
# contents: read
# pages: write
# id-token: write
#
# concurrency:
# group: pages
# cancel-in-progress: false
#
# jobs:
# build:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# with:
# fetch-depth: 0
#
# - name: Setup Node
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: npm
#
# - name: Setup Pages
# uses: actions/configure-pages@v4
#
# - name: Install dependencies
# run: npm ci
#
# - name: Build with VitePress (8GB memory)
# env:
# NODE_OPTIONS: '--max-old-space-size=8192'
# run: npm run docs:build
#
# - name: Upload artifact
# uses: actions/upload-pages-artifact@v3
# with:
# path: .vitepress/dist
#
# deploy:
# environment:
# name: github-pages
# url: ${{ steps.deployment.outputs.page_url }}
# needs: build
# runs-on: ubuntu-latest
# name: Deploy
# steps:
# - name: Deploy to GitHub Pages
# id: deployment
# uses: actions/deploy-pages@v4
name: Deploy to GitHub Pages
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: false
jobs:
build:
name: Build Docs
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: npm
- name: Setup GitHub Pages
uses: actions/configure-pages@v4
- name: Install dependencies
run: npm ci
- name: Build with VitePress (8GB memory)
env:
NODE_OPTIONS: '--max-old-space-size=8192'
run: npm run docs:build
- name: Upload build files
if: github.event_name == 'push'
uses: actions/upload-pages-artifact@v3
with:
path: .vitepress/dist
deploy:
name: Deploy to GitHub Pages
if: github.event_name == 'push'
needs: build
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4