Skip to content

Commit

Permalink
ci: replace deployment job for reuse workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
deandreamatias committed Aug 11, 2024
1 parent 110a53e commit 174a80e
Showing 1 changed file with 3 additions and 25 deletions.
28 changes: 3 additions & 25 deletions .github/workflows/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 174a80e

Please sign in to comment.