Create upy.yml

This commit is contained in:
小赵同学 authored and GitHub committed 2024-07-27 18:44:06 +08:00
1 parent 8cde4da5c4
commit d3587345d8
1 file changed
+29
+29
View File
@@ -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'