Skip to content

Commit 00324e8

Browse files
ci: use reusable deployment workflow
1 parent 8c04465 commit 00324e8

File tree

1 file changed

+3
-25
lines changed

1 file changed

+3
-25
lines changed

.github/workflows/base.yaml

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -70,30 +70,8 @@ jobs:
7070
flutter build web
7171
7272
deployment:
73-
if: ${{ github.ref_type == 'tag' }}
74-
needs: build
75-
name: Deploy package
7673
permissions:
7774
id-token: write
78-
runs-on: ubuntu-latest
79-
steps:
80-
- uses: actions/checkout@v4
81-
with:
82-
fetch-depth: 1 # Use shallow clone for faster checkout
83-
- uses: dart-lang/setup-dart@v1
84-
85-
- name: Get Flutter version by FVM
86-
uses: kuhnroyal/flutter-fvm-config-action@v2
87-
id: fvm-config-action
88-
with:
89-
path: ".fvmrc"
90-
91-
- name: Set up Flutter
92-
uses: subosito/flutter-action@v2
93-
with:
94-
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
95-
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
96-
architecture: x64
97-
cache: true
98-
- name: Publish package
99-
run: dart pub publish -v -f
75+
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
76+
if: ${{ github.ref_type == 'tag' }}
77+
needs: build

0 commit comments

Comments
 (0)