Skip to content

build(deps): bump the frontend-dependencies group with 13 updates (#264) #537

build(deps): bump the frontend-dependencies group with 13 updates (#264)

build(deps): bump the frontend-dependencies group with 13 updates (#264) #537

name: Deploy Docusaurus to Github Pages
on:
push:
branches:
- master
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build Gallery
run: |
pip install pillow pillow-avif-plugin
python ./scripts/gallery-updater/update-gallery.py
- name: Install NPM Dependencies
run: |
yarn install --immutable
- name: Build Static Content
env:
DOCUSAURUS_SSR_CONCURRENCY: 4
run: |
unzip ./static/data/docs/opengoal-docs.zip -d ./
yarn gen-docs
yarn build
cp ./CNAME ./build
- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: "./build/"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main