feat: workflow add upyun.

This commit is contained in:
GiriNeko 2025-08-05 17:14:38 +08:00
parent 553818c8cd
commit 2fe114d81c
2 changed files with 29 additions and 1 deletions

View file

@ -1,4 +1,4 @@
name: Latest Build name: Latest Build to GitHub Pages
on: on:
schedule: schedule:
- cron: '0 20 * * 2' # 每周二晚上8点触发 - cron: '0 20 * * 2' # 每周二晚上8点触发

28
.github/workflows/deploy2upyun.yml vendored Normal file
View file

@ -0,0 +1,28 @@
name: Latest Build to UPYUN
on:
schedule:
- cron: '0 20 * * 2' # 每周二晚上8点触发
push:
branches:
- master # 你可以根据需要更改分支名称
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Run custom script
run: |
sudo apt-get update
sudo apt-get install -y libxml2-utils
chmod +x run.sh
./run.sh
- name: Deploy tp upyun
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'
publish_dir: '/'