Merge branch 'main' of https://github.com/imzql/blog
This commit is contained in:
commit
dcfd787a37
1 file changed
+29
@@ -0,0 +1,29 @@
|
|||||||
|
name: Deploy to UpYun
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- 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.0.3
|
||||||
|
with:
|
||||||
|
bucket: ${{ secrets.UPYUN_BUCKET }}
|
||||||
|
operator: ${{ secrets.UPYUN_OPERATOR_NAME }}
|
||||||
|
password: ${{ secrets.UPYUN_OPERATOR_PWD }}
|
||||||
|
dir: 'public'
|
||||||
Reference in new issue
Block a user