feat: add content repository example

This commit is contained in:
2026-08-29 18:59:58 +08:00
parent 0cf1f51745
commit e169eae2dc
12 changed files with 340 additions and 0 deletions
@@ -0,0 +1,51 @@
name: Deploy easy-slides to GitHub Pages
on:
push:
branches: [main]
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
concurrency:
group: pages
cancel-in-progress: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 11.19.0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm check
env:
PRESENTER_TOKEN: ${{ secrets.PRESENTER_TOKEN }}
- run: pnpm build
env:
SITE_BASE: /${{ github.event.repository.name }}/
PRESENTER_TOKEN: ${{ secrets.PRESENTER_TOKEN }}
- uses: actions/configure-pages@v5
- uses: actions/upload-pages-artifact@v4
with:
path: dist
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy
id: deployment
uses: actions/deploy-pages@v4