Skip to content

Commit

Permalink
ci update versions
Browse files Browse the repository at this point in the history
  • Loading branch information
stslex committed Apr 23, 2024
1 parent 93b8e4b commit 6bd9088
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/android_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:

- name: Checkout branch
uses: actions/checkout@v2
uses: actions/checkout@v4
- run: |
echo "${{ secrets.KEYSTORE }}" > keystore.jks.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.jks.asc > keystore.jks
Expand Down
21 changes: 19 additions & 2 deletions .github/workflows/android_deploy_beta.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Android Deploy Beta

on:
push:
branches: [ dev ]
workflow_dispatch:

jobs:
Expand All @@ -10,12 +12,15 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- run: |
echo "${{ secrets.KEYSTORE }}" > keystore.jks.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.jks.asc > keystore.jks
- name: Update Version
run: bash ./.github/scripts/update_versions.sh

- uses: ruby/[email protected]
with:
ruby-version: '2.7.0'
Expand Down Expand Up @@ -79,4 +84,16 @@ jobs:
base64 -d -i play_config.json.b64 > play_config.json
- name: Distribute app to Beta track 🚀
run: bundle exec fastlane beta
run: bundle exec fastlane beta

- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "update version"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PUSH_TOKEN }}
branch: ${{ github.ref }}
21 changes: 19 additions & 2 deletions .github/workflows/android_deploy_prod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Android Deploy Prod

on:
push:
branches: [ main ]
workflow_dispatch:

jobs:
Expand All @@ -10,12 +12,15 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- run: |
echo "${{ secrets.KEYSTORE }}" > keystore.jks.asc
gpg -d --passphrase "${{ secrets.KEYSTORE_PASSPHRASE }}" --batch keystore.jks.asc > keystore.jks
- name: Update Version
run: bash ./.github/scripts/update_versions.sh

- uses: ruby/[email protected]
with:
ruby-version: '2.7.0'
Expand Down Expand Up @@ -79,4 +84,16 @@ jobs:
base64 -d -i play_config.json.b64 > play_config.json
- name: Distribute app to Beta track 🚀
run: bundle exec fastlane deploy
run: bundle exec fastlane deploy

- name: Commit files
run: |
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -a -m "update version"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.PUSH_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit 6bd9088

Please sign in to comment.