Create upy.yml
This commit is contained in:
1 parent
8cde4da5c4
commit
d3587345d8
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