![dependabot[bot]](/assets/img/avatar_default.png)
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](d632683dd7...eef61447b9
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
114 lines
4.5 KiB
YAML
114 lines
4.5 KiB
YAML
name: Release on tag
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
# Declare default permissions as read only.
|
|
permissions: read-all
|
|
|
|
jobs:
|
|
release_github:
|
|
name: GitHub release
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: write
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
|
with:
|
|
egress-policy: audit
|
|
|
|
# Building relies on the Android Gradle plugin,
|
|
# which requires a modern Java version (not the default one).
|
|
- name: Set up JDK for Android Gradle plugin
|
|
uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.0
|
|
with:
|
|
distribution: 'temurin'
|
|
java-version: '21'
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
|
|
|
|
- name: Get Flutter packages
|
|
run: scripts/pub_get_all.sh
|
|
|
|
- name: Update Flutter version file
|
|
run: scripts/update_flutter_version.sh
|
|
|
|
- name: Build signed artifacts
|
|
# `KEY_JKS` should contain the result of:
|
|
# gpg -c --armor keystore.jks
|
|
# `KEY_JKS_PASSPHRASE` should contain the passphrase used for the command above
|
|
# The SkSL bundle must be produced with the same Flutter engine as the one used to build the artifact
|
|
# flutter build <subcommand> --bundle-sksl-path shaders.sksl.json
|
|
# do not bundle shaders for izzy/libre flavours, to avoid crashes in some environments:
|
|
# cf https://github.com/deckerst/aves/issues/388
|
|
# cf https://github.com/deckerst/aves/issues/398
|
|
run: |
|
|
echo "${{ secrets.KEY_JKS }}" > release.keystore.asc
|
|
gpg -d --passphrase "${{ secrets.KEY_JKS_PASSPHRASE }}" --batch release.keystore.asc > $AVES_STORE_FILE
|
|
rm release.keystore.asc
|
|
mkdir outputs
|
|
scripts/apply_flavor_play.sh
|
|
./flutterw build appbundle -t lib/main_play.dart --flavor play --bundle-sksl-path shaders.sksl.json
|
|
cp build/app/outputs/bundle/playRelease/*.aab outputs
|
|
./flutterw build apk -t lib/main_play.dart --flavor play --bundle-sksl-path shaders.sksl.json
|
|
cp build/app/outputs/apk/play/release/*.apk outputs
|
|
scripts/apply_flavor_izzy.sh
|
|
./flutterw build apk -t lib/main_izzy.dart --flavor izzy --split-per-abi
|
|
cp build/app/outputs/apk/izzy/release/*.apk outputs
|
|
scripts/apply_flavor_libre.sh
|
|
./flutterw build appbundle -t lib/main_libre.dart --flavor libre
|
|
cp build/app/outputs/bundle/libreRelease/*.aab outputs
|
|
./flutterw build apk -t lib/main_libre.dart --flavor libre --split-per-abi
|
|
cp build/app/outputs/apk/libre/release/*.apk outputs
|
|
rm $AVES_STORE_FILE
|
|
env:
|
|
AVES_STORE_FILE: ${{ github.workspace }}/key.jks
|
|
AVES_STORE_PASSWORD: ${{ secrets.AVES_STORE_PASSWORD }}
|
|
AVES_KEY_ALIAS: ${{ secrets.AVES_KEY_ALIAS }}
|
|
AVES_KEY_PASSWORD: ${{ secrets.AVES_KEY_PASSWORD }}
|
|
AVES_GOOGLE_API_KEY: ${{ secrets.AVES_GOOGLE_API_KEY }}
|
|
|
|
- name: Create GitHub release
|
|
uses: ncipollo/release-action@2c591bcc8ecdcd2db72b97d6147f871fcd833ba5 # v1.14.0
|
|
with:
|
|
artifacts: "outputs/*"
|
|
body: "[Changelog](https://github.com/${{ github.repository }}/blob/develop/CHANGELOG.md#${{ github.ref_name }})"
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Upload app bundle
|
|
uses: actions/upload-artifact@604373da6381bf24206979c74d06a550515601b9 # v4.4.1
|
|
with:
|
|
name: appbundle
|
|
path: outputs/app-play-release.aab
|
|
|
|
release_play:
|
|
name: Play Store beta release
|
|
needs: [ release_github ]
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Harden Runner
|
|
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
|
|
with:
|
|
egress-policy: audit
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
|
|
|
|
- name: Get appbundle from artifacts
|
|
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
|
|
with:
|
|
name: appbundle
|
|
|
|
- name: Release to beta channel
|
|
uses: r0adkll/upload-google-play@935ef9c68bb393a8e6116b1575626a7f5be3a7fb # v1.1.3
|
|
with:
|
|
serviceAccountJsonPlainText: ${{ secrets.PLAYSTORE_ACCOUNT_KEY }}
|
|
packageName: deckers.thibault.aves
|
|
releaseFiles: app-play-release.aab
|
|
track: beta
|
|
status: completed
|
|
whatsNewDirectory: whatsnew
|