Skip to content

Commit 174a80e

Browse files
ci: replace deployment job for reuse workflow
1 parent 110a53e commit 174a80e

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

0 commit comments

Comments
 (0)