chore: github workflow

This commit is contained in:
李华桥
2023-12-21 14:42:01 +08:00
parent 1274e0b6ab
commit 185d2ea46b
2 changed files with 9 additions and 9 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
name: Dispatch Deploy by tag
name: Deploy by tag or schedule
on:
push:
@@ -8,18 +8,18 @@ on:
- cron: '0 7 * * *'
jobs:
dispatch-deploy-by-tag:
dispatch-deploy:
runs-on: ubuntu-latest
name: Setup deploy environment
name: Setup Deploy
steps:
- name: dispatch deploy by tag
if: ${{ github.event == 'push' }}
if: ${{ github.event_name == 'push' }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: deploy.yml
inputs: '{ "flavor": "canary" }'
- name: dispatch deploy by schedule
if: ${{ github.event == 'schedule' }}
if: ${{ github.event_name == 'schedule' }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: deploy.yml
@@ -1,4 +1,4 @@
name: Dispatch Release Desktop by tag
name: Release Desktop by tag or schedule
on:
push:
@@ -8,18 +8,18 @@ on:
- cron: '0 7 * * *'
jobs:
dispatch-desktop-app-by-tag:
dispatch-release-desktop:
runs-on: ubuntu-latest
name: Setup Release Desktop
steps:
- name: dispatch desktop release by tag
if: ${{ github.event == 'push' }}
if: ${{ github.event_name == 'push' }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-desktop.yml
inputs: '{ "build-type": "canary", "is-draft": true, "is-pre-release": true }'
- name: dispatch desktop release by schedule
if: ${{ github.event == 'schedule' }}
if: ${{ github.event_name == 'schedule' }}
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-desktop.yml