Skip to content

Commit

Permalink
更新安卓自动构建的 Java 版本
Browse files Browse the repository at this point in the history
  • Loading branch information
MCredbear committed Jan 4, 2025
1 parent 7330108 commit e7e4d18
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build_and_release_android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,22 +15,28 @@ jobs:

- uses: subosito/[email protected]
with:
flutter-version: '3.17.0-1.0.pre.38'
flutter-version: '3.23.0-8.0.pre.3'
channel: 'master'

- name: Setup Java JDK
uses: actions/[email protected]
with:
java-version: '11'
java-version: '17'
distribution: 'zulu'

- run: flutter pub get
- run: flutter build apk --release

- name: Extract version from pubspec.yaml
id: extract_version
run: |
VERSION=$(grep '^version:' pubspec.yaml | sed 's/version: //')
echo "VERSION=$VERSION" >> $GITHUB_ENV
- name: Release
uses: ncipollo/[email protected]
with:
artifacts: "build/app/outputs/flutter-apk/app-release.apk"
tag: '1.1.0'
tag: ${{ env.VERSION }}
token: ${{ secrets.YOUR_GITHUB_TOKEN }}

0 comments on commit e7e4d18

Please sign in to comment.