chore!(deps): upgrade to Flutter version 3.10.6 #253
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
on: | |
workflow_dispatch: | |
push: | |
branches: | |
- master | |
paths: | |
- ".github/**" | |
- "android/**" | |
- "lib/**" | |
- "test/**" | |
- "pubspec.yaml" | |
pull_request: | |
branches: | |
- master | |
name: Development | |
jobs: | |
build: | |
name: Prepare-Build-Upload | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Restore Keystore | |
if: github.repository == 'timoknapp/sound-on-fire' | |
run: | | |
echo "${{ secrets.KEYSTORE }}" > sound-on-fire.jks.asc | |
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch sound-on-fire.jks.asc > android/sound-on-fire.jks | |
- name: VB Step 1 | |
if: github.ref != 'refs/heads/master' && github.repository == 'timoknapp/sound-on-fire' | |
run: ./.github/scripts/bumpVersion.sh | |
- name: VB Step 2 | |
if: github.ref != 'refs/heads/master' && github.repository == 'timoknapp/sound-on-fire' | |
uses: EndBug/add-and-commit@v4 | |
with: | |
author_name: timoknapp | |
author_email: [email protected] | |
message: "chore(version): bump commit hash" | |
add: "pubspec.yaml" | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
- name: Setup Java | |
uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: '11' | |
- name: Setup Flutter | |
uses: subosito/flutter-action@v2 | |
with: | |
flutter-version: '3.10.6' | |
channel: "stable" # or: 'dev' or 'beta' | |
- name: Prepare & Build | |
id: prepare-build | |
run: | | |
flutter --version | |
./.github/scripts/buildAndroid.sh beta "${{ secrets.KEYSTORE_PASSWORD }}" "${{ secrets.KEY_PASSWORD }}" "${{ secrets.KEY_ALIAS }}" "${{ secrets.APP_CENTER_SECRET }}" | |
echo "artifact-filepath=$(cat tmp_artifact_path.txt)" >> $GITHUB_OUTPUT | |
echo "artifact-filename=$(cat tmp_artifact_name.txt)" >> $GITHUB_OUTPUT | |
- name: Upload artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{ steps.prepare-build.outputs.artifact-filename }} | |
path: ${{ steps.prepare-build.outputs.artifact-filepath }} |