Files
blog/.github/workflows/upy.yml
T
2024-07-28 08:23:47 +08:00

30 lines
672 B
YAML

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'