Skip to content

Deploy to GitHub Pages #55

Deploy to GitHub Pages

Deploy to GitHub Pages #55

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
schedule:
# Check for new releases daily at 06:00 UTC
- cron: "0 6 * * *"
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v5
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
# Fetch latest release info from opskat/opskat before building
- name: Fetch latest release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: node scripts/fetch-release.mjs
- run: pnpm build
- uses: actions/upload-pages-artifact@v4
with:
path: build
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- id: deployment
uses: actions/deploy-pages@v5