mirror of
https://github.com/MetaCubeX/metacubexd.git
synced 2024-12-26 07:24:10 +08:00
ci: merge gh-pages with release workflow
This commit is contained in:
parent
a3897da0f6
commit
d00be169c3
34
.github/workflows/publish-gh-pages.yml
vendored
34
.github/workflows/publish-gh-pages.yml
vendored
@ -1,34 +0,0 @@
|
||||
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
|
||||
env:
|
||||
PUBLIC_PATH: /metacubexd
|
||||
run: |
|
||||
pnpm install
|
||||
pnpm build
|
||||
|
||||
- name: Publish Github Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./dist
|
8
.github/workflows/release.yml
vendored
8
.github/workflows/release.yml
vendored
@ -1,3 +1,5 @@
|
||||
name: release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: main
|
||||
@ -47,3 +49,9 @@ jobs:
|
||||
with:
|
||||
files: dist/*
|
||||
tag_name: ${{ needs.release-please.outputs.tag_name }}
|
||||
|
||||
- name: Publish Github Pages
|
||||
uses: peaceiris/actions-gh-pages@v3
|
||||
with:
|
||||
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||
publish_dir: ./dist
|
||||
|
Loading…
x
Reference in New Issue
Block a user