整理:`每夜构建`调整为`每周构建`(每周天23点启动编译,避免空间爆满限速)

This commit is contained in:
pppscn 2022-08-01 15:46:59 +08:00
parent cdc7856b1f
commit a6545d695e
3 changed files with 52 additions and 54 deletions

View File

@ -1,7 +1,7 @@
name: Delete old workflow runs
on:
schedule:
- cron: '0 0 * * *'
- cron: '59 15 * * 7' #每周天在国际标准时间15点59分(北京时间+8即 23:59)
workflow_dispatch:
inputs:
root_sol:
@ -13,19 +13,17 @@ jobs:
del_runs:
runs-on: ubuntu-latest
steps:
- name: Delete Nightly Build
- name: Delete Weekly Build
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 1
keep_minimum_runs: 1
delete_workflow_pattern: 'Nightly Build'
delete_workflow_pattern: 'Weekly Build'
- name: Delete Self
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 1
keep_minimum_runs: 1
delete_workflow_pattern: 'Delete old workflow runs'

View File

@ -58,11 +58,11 @@ jobs:
draft: false
prerelease: false
# 存档打包的文件
- name: Archive production artifacts
uses: actions/upload-artifact@v2
with:
name: build
path: app/build/outputs #将打包之后的文件全部上传里面会有混淆的map文件
# - name: Archive production artifacts
# uses: actions/upload-artifact@v2
# with:
# name: build
# path: app/build/outputs #将打包之后的文件全部上传里面会有混淆的map文件
# 上传至release的资源
- name: Upload release binaries
uses: alexellis/upload-assets@0.2.2

View File

@ -1,13 +1,13 @@
name: Nightly Build
name: Weekly Build
# 触发器
on:
schedule:
- cron: '30 15 * * *' #每天在国际标准时间14点(北京时间+8即 23:30)
- cron: '0 15 * * 7' #每周天在国际标准时间15点(北京时间+8即 23:00)
workflow_dispatch:
inputs:
root_sol:
description: "Nightly Build Title"
description: "Weekly Build Title"
required: true
default: "SmsForwarder"
@ -39,6 +39,6 @@ jobs:
- name: Archive production artifacts
uses: actions/upload-artifact@v3
with:
name: SmsForwarder Nightly Build
name: SmsForwarder Weekly Build
path: app/build/outputs/apk/release/*.apk
if-no-files-found: error