chore(ci): auto release on push to main

This commit is contained in:
Ricardo Dalarme 2023-02-20 17:09:52 -03:00
parent a84c6ec598
commit 88833cc827
2 changed files with 30 additions and 0 deletions

28
.github/workflows/release.yml vendored Normal file
View File

@ -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 }}

View File

@ -1,3 +1,5 @@
name: Test & Report
on:
pull_request:
push: