Skip to content

Commit

Permalink
ci: add v2 site
Browse files Browse the repository at this point in the history
  • Loading branch information
XPoet committed Jan 22, 2024
1 parent 19a093e commit dbf7e7f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,19 @@ name: deploy

on:
push:
branches: [master]
branches:
- v2

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Setup Node.js v14.x
- name: Setup Node.js v16.x
uses: actions/setup-node@v1
with:
node-version: "14.x"
node-version: "16.x"

- name: Install
run: npm install
Expand All @@ -25,7 +26,9 @@ jobs:
uses: peaceiris/actions-gh-pages@v3
with:
publish_dir: ./dist
github_token: ${{ secrets.GH_PAGES_DEPLOY }}
personal_token: ${{ secrets.GH_PAGES_DEPLOY }}
external_repository: picx-apps/picx-v2
publish_branch: gh-pages
user_name: ${{ secrets.MY_USER_NAME }}
user_email: ${{ secrets.MY_USER_EMAIL }}
commit_message: Update PicX
commit_message: PicX v2
2 changes: 1 addition & 1 deletion public/CNAME
Original file line number Diff line number Diff line change
@@ -1 +1 @@
picx.xpoet.cn
v2.picx.xpoet.cn

0 comments on commit dbf7e7f

Please sign in to comment.