Skip to content

Update & Deploy

Update & Deploy #41914

Workflow file for this run

name: Update & Deploy
on:
push:
branches:
- main
schedule:
- cron: "15 * * * *"
permissions:
id-token: write
pages: write
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v7
with:
node-version: 24.x
cache: "npm"
- name: Install Dependencies
run: npm ci
- name: Test
run: npm test
- name: Fetch
run: npm run fetch
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build
run: npm run build
- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v5
with:
path: public/
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: update
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v5