File tree 1 file changed +5
-14
lines changed
1 file changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -14,18 +14,10 @@ jobs:
14
14
uses : JamesIves/github-pages-deploy-action@master
15
15
env :
16
16
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
29
21
- name : Deploy
30
22
uses : appleboy/ssh-action@master # 使用ssh链接服务器
31
23
with :
37
29
rm -rf /data/www/temp
38
30
mkdir /data/www/temp
39
31
cd /data/www/temp
40
- git clone https://github.com/ibwei/vue3-base/
32
+ git clone -b release https://github.com/ibwei/vue3-base/
41
33
cd /data/www/temp/vue3-base
42
- git checkout gh-pages
43
34
mv dist/* /data/www/vue3
You can’t perform that action at this time.
0 commit comments