Update upy.yml
This commit is contained in:
1 file changed
+10
-14
+10
-14
@@ -1,7 +1,12 @@
|
|||||||
name: Deploy to UpYun
|
name: Sync Upyun
|
||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
paths:
|
||||||
|
- 'blog/**' # 目录内容有变化执行工作流
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
@@ -11,19 +16,10 @@ jobs:
|
|||||||
- name: Checkout Repository master branch
|
- name: Checkout Repository master branch
|
||||||
uses: actions/checkout@master
|
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
|
- name: Deploy
|
||||||
uses: her-cat/upyun-deployer@v1.0.3
|
uses: her-cat/upyun-deployer@v1
|
||||||
with:
|
with:
|
||||||
bucket: ${{ secrets.UPYUN_BUCKET }}
|
bucket: ${{ secrets.UPYUN_BUCKET }}
|
||||||
operator: ${{ secrets.UPYUN_OPERATOR_NAME }}
|
operator: ${{ secrets.OPERATOR }}
|
||||||
password: ${{ secrets.UPYUN_OPERATOR_PWD }}
|
password: ${{ secrets.OPERATOR_PASSWORD }}
|
||||||
dir: 'public'
|
dir: blog # 需同步的本地目录
|
||||||
Reference in new issue
Block a user