New update manager #10
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Android build & upload | |
on: | |
push: | |
tags: | |
- 'v[0-9]+.[0-9]+.[0-9]+*' | |
jobs: | |
build_ios: | |
permissions: write-all | |
name: Build Flutter (iOS) | |
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: | |
channel: 'stable' | |
- run: flutter pub get | |
- run: flutter clean | |
- run: flutter build ios --release --no-codesign | |
- name: Create iPA | |
run: | | |
cd build/ios/iphoneos/ && mkdir -p Payload && | |
mv Runner.app Payload/ && zip -r app.ipa Payload && ls | |
- name: Upload iPA | |
uses: ncipollo/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generateReleaseNotes: true | |
name: Catsuka ${{ github.ref_name }} | |
tag: ${{ github.ref_name }} | |
artifacts: build/ios/iphoneos/*.ipa | |
replacesArtifacts: true | |
allowUpdates: true | |
build_apk: | |
permissions: write-all | |
name: Build Flutter (Android) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: '12.x' | |
- uses: subosito/flutter-action@v1 | |
with: | |
channel: 'stable' | |
- run: flutter pub get | |
- run: flutter build apk --release --split-per-abi | |
- name: Upload APK | |
uses: ncipollo/[email protected] | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
generateReleaseNotes: true | |
name: Catsuka ${{ github.ref_name }} | |
tag: ${{ github.ref_name }} | |
artifacts: build/app/outputs/apk/release/*.apk | |
replacesArtifacts: true | |
allowUpdates: true |