Update upy.yml
This commit is contained in:
1 parent
af14ab7387
commit
9710bb74c3
1 file changed
+15
-9
@@ -1,12 +1,9 @@
|
||||
name: Sync Upyun
|
||||
name: Deploy to UpYun
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'koobaiblog/**' # 目录内容有变化执行工作流
|
||||
- main
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -16,10 +13,19 @@ jobs:
|
||||
- name: Checkout Repository master branch
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v1
|
||||
with:
|
||||
hugo-version: '0.128.2'
|
||||
|
||||
- name: Build static files
|
||||
run: hugo --minify --environment production
|
||||
|
||||
- name: Deploy
|
||||
uses: her-cat/upyun-deployer@v1
|
||||
uses: her-cat/upyun-deployer@v1.0.3
|
||||
with:
|
||||
bucket: ${{ secrets.UPYUN_BUCKET }}
|
||||
operator: ${{ secrets.OPERATOR }}
|
||||
password: ${{ secrets.OPERATOR_PASSWORD }}
|
||||
dir: koobaiblog # 需同步的本地目录
|
||||
operator: ${{ secrets.UPYUN_OPERATOR_NAME }}
|
||||
password: ${{ secrets.UPYUN_OPERATOR_PWD }}
|
||||
dir: 'public'
|
||||
publish_dir: 'myblog'
|
||||
Reference in new issue
Block a user