Open-Sora/.github/workflows/github_page.yaml
Frank Lee 0b37f4bd63 Hotfix/gallery build (#337)
* fixed gallery build workflow

* updated node version
2024-04-27 13:13:59 +08:00

31 lines
599 B
YAML

name: GitHub Pages
on:
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
ref: gallery
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: 20
- run: npm install
- run: npm run build
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build