Skip to content

Commit b078729

Browse files
author
白唯
committed
fix(修复 ci/cd): 修复
1 parent 262d1b2 commit b078729

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

.github/workflows/de.yml

+5-14
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,10 @@ jobs:
1414
uses: JamesIves/github-pages-deploy-action@master
1515
env:
1616
ACCESS_TOKEN: ${{ secrets.MY_DEPLOY_KEY }}
17-
BRANCH: gh-pages
18-
FOLDER: dist
19-
BUILD_SCRIPT: yarn && build && cp ./dist/index.html ./dist/404.html && echo "pro.abckey.com" > ./dist/CNAME
20-
- name: deploy to target directory
21-
uses: crazy-max/ghaction-github-pages@v1
22-
with:
23-
target_branch: gh-pages
24-
build_dir: dist
25-
repo: ibwei/vue3-base
26-
env:
27-
GITHUB_TOKEN: ${{ secrets.MY_DEPLOY_KEY }}
28-
GITHUB_PAT: ${{secrets.MY_DEPLOY_KEY}}
17+
BASE_BRANCH: master # The branch the action should deploy from.
18+
BRANCH: release # The branch the action should deploy to.
19+
FOLDER: dist # The folder the action should deploy.
20+
BUILD_SCRIPT: yarn && yarn build
2921
- name: Deploy
3022
uses: appleboy/ssh-action@master # 使用ssh链接服务器
3123
with:
@@ -37,7 +29,6 @@ jobs:
3729
rm -rf /data/www/temp
3830
mkdir /data/www/temp
3931
cd /data/www/temp
40-
git clone https://github.com/ibwei/vue3-base/
32+
git clone -b release https://github.com/ibwei/vue3-base/
4133
cd /data/www/temp/vue3-base
42-
git checkout gh-pages
4334
mv dist/* /data/www/vue3

0 commit comments

Comments
 (0)