feat: test #111
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 App | |
on: | |
push: | |
branches: | |
- main | |
- feat/add-version-identifier | |
concurrency: | |
group: ${{ github.workflow }} | |
permissions: | |
contents: read # for checkout | |
jobs: | |
build: | |
name: Build App | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 📩 - Retrieve the build signature secrets | |
env: | |
KEYSTORE: ${{ secrets.KEYSTORE }} | |
KEY_PROPERTIES: ${{ secrets.KEY_PROPERTIES }} | |
run: | | |
echo -ne "$KEYSTORE" | base64 --decode > android/pessoa-pensadora.jks && \ | |
echo "$KEY_PROPERTIES" > android/key.properties | |
- name: 💎 - Install Flutter | |
uses: subosito/[email protected] | |
with: | |
flutter-version: '3.x' | |
channel: 'stable' | |
- uses: actions/setup-java@v4 | |
with: | |
distribution: 'corretto' | |
java-version: '17' | |
- name: 🌱 - Get dependencies | |
run: flutter pub get | |
- name: 🔨 - Build | |
run: flutter build apk --release --flavor prod | |
- name: 🧹 - Cleanup | |
run: | | |
rm android/pessoa-pensadora.jks android/key.properties | |
mv build/app/outputs/flutter-apk/app-prod-release.apk PessoaPensadora.apk | |
- name: 📦 - Copy artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: PessoaPensadora.apk | |
path: PessoaPensadora.apk | |
if-no-files-found: error | |
release: | |
name: Release | |
needs: [build] | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
issues: write | |
pull-requests: write | |
steps: | |
- uses: actions/checkout@v3 | |
- name: 📦 - Copy server artifacts | |
uses: actions/download-artifact@v4 | |
with: | |
path: artifacts/ | |
merge-multiple: true | |
- name: 🧐 - Display structure of downloaded artifacts | |
run: ls -R artifacts/ | |
- name: 🚚 - Semantic Release | |
uses: cycjimmy/semantic-release-action@v4 | |
with: | |
extra_plugins: | | |
semantic-release-replace-plugin | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |