Skip to content

Commit 0a88c92

Browse files
committed
chore: Update GitHub Actions and Flutter setup (更新 GitHub Actions 和 Flutter 配置)
- Update `actions/checkout` from v3 to v4 in `.github/workflows/release.yml` (更新 `.github/workflows/release.yml` 中的 `actions/checkout` 版本,从 v3 升级到 v4) - Update `flutter-actions/setup-flutter` to use version instead of channel/cache settings in `.github/workflows/release.yml` (更新 `.github/workflows/release.yml` 中的 `flutter-actions/setup-flutter`, 使用 version 配置替代 channel/cache 配置) - Update `actions/download-artifact` from v3 to v4 in `.github/workflows/release.yml` (更新 `.github/workflows/release.yml` 中的 `actions/download-artifact` 版本,从 v3 升级到 v4) - Update `softprops/action-gh-release` from v1 to v2 in `.github/workflows/release.yml` (更新 `.github/workflows/release.yml` 中的 `softprops/action-gh-release` 版本,从 v1 升级到 v2)
1 parent bdc996f commit 0a88c92

File tree

1 file changed

+7
-13
lines changed

1 file changed

+7
-13
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,17 +46,14 @@ jobs:
4646

4747
steps:
4848
- name: Checkout code
49-
uses: actions/checkout@v3
49+
uses: actions/checkout@v4
5050
with:
5151
fetch-depth: 0
5252

5353
- name: Setup Flutter
5454
uses: flutter-actions/setup-flutter@v4
5555
with:
56-
channel: stable
57-
cache: true
58-
cache-key: 'flutter-3.24.1'
59-
cache-path: '~/.pub-cache'
56+
version: 3.24.1
6057

6158
- name: Display flutter info
6259
run: |
@@ -97,17 +94,14 @@ jobs:
9794

9895
steps:
9996
- name: Checkout code
100-
uses: actions/checkout@v3
97+
uses: actions/checkout@v4
10198
with:
10299
fetch-depth: 0
103100

104101
- name: Setup Flutter
105102
uses: flutter-actions/setup-flutter@v4
106103
with:
107-
channel: stable
108-
cache: true
109-
cache-key: 'flutter-3.24.1'
110-
cache-path: '~/.pub-cache'
104+
version: 3.24.1
111105

112106
- name: Install dependencies
113107
run: |
@@ -136,13 +130,13 @@ jobs:
136130
runs-on: ubuntu-latest
137131
steps:
138132
- name: Download all artifacts
139-
uses: actions/download-artifact@v3
133+
uses: actions/download-artifact@v4
140134
with:
141135
path: artifacts
142136

143137
- name: Create Release
144138
id: create_release
145-
uses: softprops/action-gh-release@v1
139+
uses: softprops/action-gh-release@v2
146140
with:
147141
tag_name: ${{ env.RELEASE_TAG }}
148142
name: Release ${{ env.RELEASE_TAG }}
@@ -163,7 +157,7 @@ jobs:
163157
runs-on: ubuntu-latest
164158
steps:
165159
- name: Download all artifacts
166-
uses: actions/download-artifact@v3
160+
uses: actions/download-artifact@v4
167161
with:
168162
path: artifacts
169163

0 commit comments

Comments
 (0)