mirror of
https://github.com/GiriNeko/CheckChrome.git
synced 2025-12-16 13:17:15 +00:00
feat: workflow add upyun.
This commit is contained in:
parent
553818c8cd
commit
2fe114d81c
2 changed files with 29 additions and 1 deletions
|
|
@ -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
28
.github/workflows/deploy2upyun.yml
vendored
Normal 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: '/'
|
||||||
Loading…
Add table
Add a link
Reference in a new issue