From d32c990c2075ec21fa63e7ab4353acfcb1e52f1e Mon Sep 17 00:00:00 2001 From: Kouki Badr <36043466+koukibadr@users.noreply.github.com> Date: Sat, 14 Oct 2023 09:38:40 +0100 Subject: [PATCH] Create package_deploy.yml (#110) * Create package_deploy.yml * update target branch in package deploy action --- .github/workflows/package_deploy.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/package_deploy.yml diff --git a/.github/workflows/package_deploy.yml b/.github/workflows/package_deploy.yml new file mode 100644 index 0000000..466cf5e --- /dev/null +++ b/.github/workflows/package_deploy.yml @@ -0,0 +1,27 @@ +on: + release: + branches: + - main +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Install Flutter + uses: subosito/flutter-action@v2 + with: + flutter-version: '3.7.10' + - name: Install dependencies + run: flutter pub get + - name: Analyze + run: flutter analyze + - name: Format code + run: dart format --fix . + - name: Check Publish Warnings + run: dart pub publish --dry-run + - name: Publish + uses: k-paxian/dart-package-publisher@v1.5.1 + with: + credentialJson: ${{ secrets.CREDENTIAL_JSON }} + flutter: true + skipTests: true