Skip to content

Commit

Permalink
Create release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
d1y committed Mar 24, 2022
1 parent be39ba2 commit 9f0bf4b
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 211-release
on:
push:
tags:
- "release-v*"

jobs:
release-to-gitHub:
name: release
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
with:
java-version: "12.x"
- uses: subosito/flutter-action@v1
with:
flutter-version: "2.5.3"
channel: "stable"
- run: flutter pub get
- run: flutter pub deps
- run: flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi

- run: |
flutter build ios --release --no-codesign
cd build/ios/iphoneos
mkdir Payload
cd Payload
ln -s ../Runner.app
cd ..
zip -r app.ipa Payload
- uses: softprops/action-gh-release@v1
with:
files: |
build/app/outputs/flutter-apk/*.apk
build/ios/iphoneos/app.ipa
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9f0bf4b

Please sign in to comment.