chore: add privacy policy #28
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: Your Budget Android Release | |
on: | |
push: | |
branches: [ master ] | |
jobs: | |
build: | |
name: Build APK and Create release | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-java@v4 | |
with: | |
java-version: '12.x' | |
distribution: 'adopt' | |
- run: echo $SIGNING_KEY | base64 -d > android/app/key.jks | |
env: | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
- uses: subosito/flutter-action@v1 | |
with: | |
flutter-version: '3.3.9' | |
- name: Read version | |
id: version | |
uses: juliangruber/read-file-action@v1 | |
with: | |
path: version.txt | |
- run: flutter clean | |
- run: flutter pub get | |
# - run: flutter test | |
- run: flutter build appbundle -v | |
env: | |
KEY_STORE_PASSWORD: ${{ secrets.KEY_STORE_PASSWORD }} | |
KEY_PASSWORD: ${{ secrets.KEY_PASSWORD }} | |
ALIAS: ${{ secrets.ALIAS }} | |
KEY_PATH: key.jks | |
- name: Create a Release in GitHub | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: "build/app/outputs/bundle/release/app-release.aab" | |
# token: ${{ secrets.GH_TOKEN }} | |
tag: ${{ steps.version.outputs.content }} | |
commit: ${{ github.sha }} | |
prerelease: true |