ci: 修改 github actions 配置文件
This commit is contained in:
parent
c22cb3b35c
commit
51cfd3e2eb
22
.github/workflows/deploy.yml
vendored
22
.github/workflows/deploy.yml
vendored
@ -22,28 +22,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
version: 6.32.2
|
version: 6.32.2
|
||||||
|
|
||||||
- name: Set SSH Environment
|
|
||||||
env:
|
|
||||||
DOCS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ssh/
|
|
||||||
echo "$ACTIONS_DEPLOY_KEY" > ~/.ssh/id_rsa
|
|
||||||
chmod 600 ~/.ssh/id_rsa
|
|
||||||
ssh-keyscan github.com > ~/.ssh/known_hosts
|
|
||||||
chmod 700 ~/.ssh && chmod 600 ~/.ssh/*
|
|
||||||
git config --local user.email "zclzone@outlook.com"
|
|
||||||
git config --local user.name "zclzone"
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: |
|
run: |
|
||||||
pnpm install
|
pnpm install
|
||||||
pnpm run build:github
|
pnpm run build:github
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: peaceiris/actions-gh-pages@v2.5.0
|
uses: peaceiris/actions-gh-pages@v3
|
||||||
env:
|
env:
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
github_token: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
||||||
PUBLISH_BRANCH: gh-pages
|
user_name: zclzone
|
||||||
PUBLISH_DIR: ./dist
|
user_email: zclzone@outlook.com
|
||||||
with:
|
|
||||||
forceOrphan: true
|
|
||||||
|
Loading…
Reference in New Issue
Block a user