Merge pull request #28 from makromusic/fix-null-problem-to-intent #25
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: release | |
on: | |
push: | |
tags: ["v[0-9]+.[0-9]+.[0-9]+*"] | |
jobs: | |
release: | |
permissions: | |
contents: write | |
id-token: write | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-java@v3 | |
with: | |
java-version: 11 | |
distribution: temurin | |
- uses: subosito/flutter-action@v2 | |
with: | |
channel: stable | |
- name: Build | |
run: | | |
mkdir -p android/src/main/java/qiuxiang/android_window | |
flutter pub get | |
flutter pub run pigeon --input lib/pigeon.dart | |
cd example | |
flutter create . --platforms android | |
flutter build apk --split-per-abi | |
- uses: softprops/action-gh-release@v1 | |
with: | |
files: example/build/app/outputs/flutter-apk/app-*-release.apk | |
- name: Update | |
run: | | |
export version=$(echo ${{ github.ref_name }} | sed s/v//) | |
sed -i -r "s/version: .*/version: $version/" pubspec.yaml | |
git tag --format=$'## %(refname:short)\n%(subject)\n' --sort=-v:refname > CHANGELOG.md | |
- uses: dart-lang/setup-dart@v1 | |
- run: dart pub publish -f |