chore(ci): auto release on push to main
This commit is contained in:
parent
a84c6ec598
commit
88833cc827
|
|
@ -0,0 +1,28 @@
|
|||
name: release
|
||||
on:
|
||||
workflow_run:
|
||||
workflows: [Test & Report]
|
||||
types:
|
||||
- completed
|
||||
|
||||
jobs:
|
||||
release:
|
||||
if: ${{ github.event.workflow_run.conclusion == 'success' }}
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: "Install Flutter"
|
||||
uses: subosito/flutter-action@v2
|
||||
with:
|
||||
channel: "stable"
|
||||
|
||||
- name: Get all Flutter Packages
|
||||
run: flutter pub get
|
||||
|
||||
- name: Publish
|
||||
uses: sakebook/actions-flutter-pub-publisher@v1.4.1
|
||||
with:
|
||||
credential: ${{ secrets.CREDENTIAL_JSON }}
|
||||
|
|
@ -1,3 +1,5 @@
|
|||
name: Test & Report
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
push:
|
||||
|
|
|
|||
Loading…
Reference in New Issue