mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-11-14 06:25:35 +08:00
33 lines
602 B
YAML
33 lines
602 B
YAML
|
name: Publish Github Pages
|
||
|
|
||
|
on:
|
||
|
push:
|
||
|
branches:
|
||
|
- main
|
||
|
|
||
|
jobs:
|
||
|
publish-gh-pages:
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v3
|
||
|
|
||
|
- uses: pnpm/action-setup@v2
|
||
|
with:
|
||
|
version: latest
|
||
|
|
||
|
- uses: actions/setup-node@v3
|
||
|
with:
|
||
|
cache: pnpm
|
||
|
node-version: latest
|
||
|
|
||
|
- name: build
|
||
|
run: |
|
||
|
pnpm install
|
||
|
pnpm build
|
||
|
|
||
|
- name: Publish Github Pages
|
||
|
uses: peaceiris/actions-gh-pages@v3
|
||
|
with:
|
||
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||
|
publish_dir: ./dist
|