Skip to content

Publish

Publish #586

Workflow file for this run

name: Publish
on:
schedule:
- cron: "0 */6 * * *"
push:
branches:
- main
jobs:
test:
name: Publish
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write # needed for provenance data generation
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: pnpm/action-setup@v4
with:
version: 8
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://registry.npmjs.org/
cache: "pnpm"
- name: Install dependencies
run: pnpm install --frozen-lockfile
shell: bash
- name: Build project
run: pnpm build
shell: bash
- name: Build agenda
run: npm run build -w agenda
shell: bash
- name: Request API apoia.se
run: pnpx tsx tools/request-progress.ts
shell: bash
- name: Request API github
run: pnpx tsx tools/request-team.ts
shell: bash
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist