Skip to content

Commit

Permalink
Docs fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CryZo committed Apr 7, 2024
1 parent 28e308c commit 4b978a4
Showing 1 changed file with 41 additions and 23 deletions.
64 changes: 41 additions & 23 deletions .github/workflows/android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
- name: Upload build artifacts
uses: actions/upload-artifact@v2
with:
name: assets
name: release-bundle
path: |
${{ github.workspace }}/app/build/outputs/bundle/release
Expand All @@ -72,17 +72,26 @@ jobs:
needs: build
runs-on: ubuntu-latest
steps:
- name: Decode Service Account Key JSON File
uses: timheuer/base64-to-file@v1
id: service_account_json_file
with:
fileName: "serviceAccount.json"
encodedString: ${{ secrets.GPLAY_SERVICE_ACCOUNT_KEY_JSON }}
- name: checkout code
uses: actions/checkout@v2

- name: Deploy to Google Play
run: bundle exec fastlane android deploy
env:
ANDROID_JSON_KEY_FILE: ${{ steps.service_account_json_file.outputs.filePath }}
- uses: actions/download-artifact@v2
with:
name: release-bundle
path: |
${{ github.workspace }}/app/build/outputs/bundle/release
- name: Decode Service Account Key JSON File
uses: timheuer/base64-to-file@v1
id: service_account_json_file
with:
fileName: "serviceAccount.json"
encodedString: ${{ secrets.GPLAY_SERVICE_ACCOUNT_KEY_JSON }}

- name: Deploy to Google Play
run: bundle exec fastlane android deploy
env:
ANDROID_JSON_KEY_FILE: ${{ steps.service_account_json_file.outputs.filePath }}


release:
Expand All @@ -94,15 +103,24 @@ jobs:
contents: write

steps:
- name: version
run: echo "CUR_VERSION=$(grep -o -E 'versionName = \"[[:digit:]\.]+\"' app/build.gradle.kts | grep -o -E '[[:digit:]\.]+')" >> $GITHUB_OUTPUT
id: version

- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
make_latest: true
tag_name: ${{ steps.version.outputs.CUR_VERSION }}
files: |
app/build/outputs/apk/release/app-release.aab
- name: checkout code
uses: actions/checkout@v2

- uses: actions/download-artifact@v2
with:
name: release-bundle
path: |
${{ github.workspace }}/app/build/outputs/bundle/release
- name: version
run: echo "CUR_VERSION=$(grep -o -E 'versionName = \"[[:digit:]\.]+\"' app/build.gradle.kts | grep -o -E '[[:digit:]\.]+')" >> $GITHUB_OUTPUT
id: version

- name: Release
uses: softprops/action-gh-release@v2
with:
generate_release_notes: true
make_latest: true
tag_name: ${{ steps.version.outputs.CUR_VERSION }}
files: |
app/build/outputs/apk/release/app-release.aab

0 comments on commit 4b978a4

Please sign in to comment.