release #57
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: "release" | |
on: | |
push: | |
tags: | |
- "1.*" | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
jobs: | |
flutter-build-ios: | |
name: "Release for iOS" | |
runs-on: "macos-latest" | |
permissions: write-all | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
- name: Extract tag name | |
run: echo "tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV | |
- name: Echo build progress | |
run: echo "Kazumi_ios_${{ env.tag }}.ipa build progress" | |
- name: Set up Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
flutter-version-file: pubspec.yaml | |
- run: flutter pub get | |
- name: Build IPA | |
run: | | |
flutter build ios --release --no-codesign | |
- name: Create IPA | |
run: | | |
mkdir Payload | |
cp -R build/ios/iphoneos/Runner.app Payload/Runner.app | |
zip -q -r Kazumi_ios_${{ env.tag }}_no_sign.ipa Payload | |
- name: Upload iOS build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ios_outputs | |
path: Kazumi_ios_*.ipa | |