ci: add gh pages deployment

This commit is contained in:
Youwen Wu 2025-06-08 14:23:13 -07:00
parent 8cc4aa5ce5
commit bf9848f04c
Signed by: youwen
GPG key ID: 865658ED1FE61EC3
2 changed files with 23 additions and 0 deletions

23
.github/actions/pages.yml vendored Normal file
View file

@ -0,0 +1,23 @@
name: GitHub Pages
on:
push:
branches:
- main
pull_request:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4
- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public