From 174a80ee03513c93a7ca7c93a0a4d8847acf4f00 Mon Sep 17 00:00:00 2001 From: Matias de Andrea Date: Sun, 11 Aug 2024 12:39:55 +0200 Subject: [PATCH] ci: replace deployment job for reuse workflow --- .github/workflows/base.yaml | 28 +++------------------------- 1 file changed, 3 insertions(+), 25 deletions(-) diff --git a/.github/workflows/base.yaml b/.github/workflows/base.yaml index f714fa1..a963f32 100644 --- a/.github/workflows/base.yaml +++ b/.github/workflows/base.yaml @@ -71,30 +71,8 @@ jobs: flutter build web deployment: - if: ${{ github.ref_type == 'tag' }} - needs: build - name: Deploy package permissions: id-token: write - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - with: - fetch-depth: 1 # Use shallow clone for faster checkout - - uses: dart-lang/setup-dart@v1 - - - name: Get Flutter version by FVM - uses: kuhnroyal/flutter-fvm-config-action@v2 - id: fvm-config-action - with: - path: ".fvmrc" - - - name: Set up Flutter - uses: subosito/flutter-action@v2 - with: - flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }} - channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }} - architecture: x64 - cache: true - - name: Publish package - run: dart pub publish -v -f + uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main + if: ${{ github.ref_type == 'tag' }} + needs: build