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

View File

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

View File

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