CheckChrome/.github/workflows/deploy2upyun.yml
2025-08-05 18:04:44 +08:00

28 lines
731 B
YAML

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: '/'