35 lines
688 B
YAML
35 lines
688 B
YAML
name: Website
|
|
|
|
on:
|
|
push:
|
|
branches: [website]
|
|
workflow_dispatch: {}
|
|
|
|
concurrency:
|
|
group: website-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
|
|
gh-pages:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
path: website
|
|
ref: website
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
token: ${{ secrets.GH_PAT }}
|
|
path: gh-pages
|
|
ref: gh-pages
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20.x
|
|
cache: 'npm'
|
|
- run: |
|
|
npm ci
|
|
npm run gh-pages
|