Skip to content

Commit

Permalink
Fix the internal_release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ILIYANGERMANOV committed Jul 6, 2024
1 parent b770c57 commit 053014b
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/internal_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ jobs:
internal_release:
if: |
contains(github.event.head_commit.message, 'Automatic release')
permissions:
contents: write

runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -68,6 +71,23 @@ jobs:
PLAY_CONFIG_JSON: ${{ secrets.GOOGLE_PLAY_CONSOLE_JSON }}
#--------------------------------------------------------------------------------

- name: Get version name and code from libs.versions.toml
id: get_version
run: |
VERSION_NAME=$(grep 'version-name =' gradle/libs.versions.toml | awk -F'=' '{print $2}' | tr -d ' "')
VERSION_CODE=$(grep 'version-code =' gradle/libs.versions.toml | awk -F'=' '{print $2}' | tr -d ' "')
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
- name: Create and push tag
env:
PAT_TOKEN: ${{ secrets.IVYWALLET_BOT_GITHUB_PAT_2 }}
run: |
TAG_NAME="v${{ env.VERSION_NAME }}-${{ env.VERSION_CODE }}"
git tag $TAG_NAME
git push https://x-access-token:${{ env.PAT_TOKEN }}@github.com/${{ github.repository }} $TAG_NAME
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
# Fastlane: Build production .aab and release it to Internal Testing
- name: Build production App Bundle
run: bundle exec fastlane production_build
Expand All @@ -82,31 +102,14 @@ jobs:
name: app-release.aab
path: app/build/outputs/bundle/release/app-release.aab

- name: Release App Bundle to Internal Testing
- name: Release App Bundle to Google PlayStore Internal Testing
run: bundle exec fastlane internal_release
env:
SIGNING_KEY_ALIAS: ${{ secrets.SIGNING_KEY_ALIAS }}
SIGNING_KEY_PASSWORD: ${{ secrets.SIGNING_KEY_PASSWORD }}
SIGNING_STORE_PASSWORD: ${{ secrets.SIGNING_STORE_PASSWORD }}
#--------------------------------------------------------------------------

- name: Get version name and code from libs.versions.toml
id: get_version
run: |
VERSION_NAME=$(grep 'version-name =' gradle/libs.versions.toml | awk -F'=' '{print $2}' | tr -d ' "')
VERSION_CODE=$(grep 'version-code =' gradle/libs.versions.toml | awk -F'=' '{print $2}' | tr -d ' "')
echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV
echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV
- name: Create and push tag
env:
PAT_TOKEN: ${{ secrets.IVYWALLET_BOT_GITHUB_PAT_2 }}
run: |
TAG_NAME="v${{ env.VERSION_NAME }}-${{ env.VERSION_CODE }}"
git tag $TAG_NAME
git push https://x-access-token:${{ env.PAT_TOKEN }}@github.com/${{ github.repository }} $TAG_NAME
echo "TAG_NAME=$TAG_NAME" >> $GITHUB_ENV
- name: Prepare changelog for GitHub Release
uses: Bullrich/generate-release-changelog@master
id: Changelog
Expand Down

0 comments on commit 053014b

Please sign in to comment.