Skip to content

Commit fbd04c5

Browse files
ci: update jobs
1 parent 5f2dbcc commit fbd04c5

File tree

2 files changed

+18
-18
lines changed

2 files changed

+18
-18
lines changed

.github/workflows/base.yaml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,34 @@ jobs:
1616
runs-on: macos-latest
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
20+
with:
21+
fetch-depth: 1 # Use shallow clone for faster checkout
2022

2123
- name: Check broken links
2224
uses: JustinBeckwith/linkinator-action@v1
2325
with:
2426
paths: "**/*.md"
2527

2628
- name: Setup Java
27-
uses: actions/setup-java@v3
29+
uses: actions/setup-java@v4
2830
with:
2931
distribution: 'zulu'
3032
java-version: '11'
3133

34+
- name: Get Flutter version by FVM
35+
uses: kuhnroyal/flutter-fvm-config-action@v2
36+
id: fvm-config-action
37+
with:
38+
path: ".fvmrc"
39+
3240
- name: Flutter action
3341
uses: subosito/flutter-action@v2
3442
with:
35-
channel: 'stable'
43+
flutter-version: ${{ steps.fvm-config-action.outputs.FLUTTER_VERSION }}
44+
channel: ${{ steps.fvm-config-action.outputs.FLUTTER_CHANNEL }}
45+
architecture: x64
46+
cache: true
3647

3748
- name: Install dependencies
3849
run: flutter pub get
@@ -59,19 +70,8 @@ jobs:
5970
# name: form_builder_image_picker
6071

6172
deployment:
62-
if: ${{ github.ref_type == 'tag' }}
63-
needs: build
64-
name: Deploy package
6573
permissions:
6674
id-token: write
67-
runs-on: ubuntu-latest
68-
steps:
69-
- uses: actions/checkout@v3
70-
- uses: dart-lang/setup-dart@v1
71-
- name: Flutter action
72-
uses: subosito/flutter-action@v2
73-
with:
74-
channel: 'stable'
75-
- name: Publish package
76-
run: dart pub publish -v -f
77-
75+
uses: flutter-form-builder-ecosystem/.github/.github/workflows/deployment.yaml@main
76+
if: ${{ github.ref_type == 'tag' }}
77+
needs: build

.github/workflows/stale.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v8
10+
- uses: actions/stale@v9
1111
with:
1212
repo-token: ${{ secrets.GITHUB_TOKEN }}
1313
stale-issue-message: "This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days."

0 commit comments

Comments
 (0)