From 88833cc8278e0e9e736b531b81a3f133c1674921 Mon Sep 17 00:00:00 2001 From: Ricardo Dalarme Date: Mon, 20 Feb 2023 17:09:52 -0300 Subject: [PATCH] chore(ci): auto release on push to main --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++++++ .github/workflows/test-report.yml | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..2295050 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/.github/workflows/test-report.yml b/.github/workflows/test-report.yml index 15a7130..e3dfe80 100644 --- a/.github/workflows/test-report.yml +++ b/.github/workflows/test-report.yml @@ -1,3 +1,5 @@ +name: Test & Report + on: pull_request: push: