Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
d1y committed Jun 21, 2024
1 parent 209144f commit 15f13fe
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
flutter pub run build_runner build
- name: Enable windows build
run: flutter config --enable-windows-desktop
- name: Build artifacts
- name: Build windows
run: flutter build windows --release
- name: Archive Release
uses: thedoctor0/zip-release@master
Expand Down Expand Up @@ -98,21 +98,19 @@ jobs:
- uses: actions/setup-node@v4
with:
node-version: 20
- name: generate release notes
- name: Generate release notes
run: node script/draft-release-notes.js > release-notes.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# - name: build apk(archs)
# run: |
# bash script/fetch_git_info.sh
# flutter pub get
# flutter pub run build_runner build
# flutter pub deps
# flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

- name: build all arch
run: flutter build apk --release
- name: Build android apk(muitple archs)
run: |
bash script/fetch_git_info.sh
flutter pub get
flutter pub run build_runner build
flutter pub deps
flutter build apk --release
# flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

# 我的iOS都升到18.0了, 还搞鸡毛啊
# - run: |
Expand All @@ -123,8 +121,9 @@ jobs:
# ln -s ../Runner.app
# cd ..
# zip -r app.ipa Payload
# output is build/ios/iphoneos/app.ipa

- name: build macos
- name: Build macos
run: |
flutter config --enable-macos-desktop
flutter build macos --release
Expand All @@ -139,7 +138,6 @@ jobs:
with:
name: windows

# build/ios/iphoneos/app.ipa
- uses: softprops/action-gh-release@v2
with:
body_path: release-notes.txt
Expand Down

0 comments on commit 15f13fe

Please sign in to comment.