Skip to content
This repository has been archived by the owner on May 31, 2024. It is now read-only.

Publish

Publish #82

Workflow file for this run

name: Publish
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci
- run: node ./generate-library.js
- name: Upload Pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: generated
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4