Update upy.yml
This commit is contained in:
1 parent
3ec48e7e31
commit
b078491400
1 file changed
+14
-10
+14
-10
@@ -1,12 +1,7 @@
|
||||
name: Sync Upyun
|
||||
name: Deploy to UpYun
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
paths:
|
||||
- 'blog/**' # 目录内容有变化执行工作流
|
||||
|
||||
jobs:
|
||||
build:
|
||||
@@ -16,10 +11,19 @@ jobs:
|
||||
- name: Checkout Repository master branch
|
||||
uses: actions/checkout@master
|
||||
|
||||
- name: Setup Hugo
|
||||
uses: peaceiris/actions-hugo@v2
|
||||
with:
|
||||
hugo-version: 'latest'
|
||||
extended: true
|
||||
|
||||
- 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: 'public' # 需同步的本地目录
|
||||
operator: ${{ secrets.UPYUN_OPERATOR_NAME }}
|
||||
password: ${{ secrets.UPYUN_OPERATOR_PWD }}
|
||||
dir: 'public'
|
||||
Reference in new issue
Block a user