Skip to content

Publish stats

Publish stats #154

Workflow file for this run

on:
workflow_dispatch:
schedule:
- cron: '0 5 * * *'
name: Publish stats
jobs:
archive:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: latest
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: pnpm
- run: pnpm install
- run: cd stats-publisher && pnpm run generate
env:
SERVICE_API_TOKEN: ${{ secrets.SERVICE_API_TOKEN }}
- run: cd stats-publisher && rsync -avz public/ dist/
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
path: stats-publisher/dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1