Skip to content

Commit

Permalink
- fix: connected with environment and secrets
Browse files Browse the repository at this point in the history
  • Loading branch information
agallardol committed Oct 24, 2023
1 parent 7ab9e5a commit 27afac3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
11 changes: 10 additions & 1 deletion .github/workflows/release-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ defaults:
jobs:
release:
runs-on: ubuntu-latest
environment: development
steps:
- name: Check out repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -56,12 +57,20 @@ jobs:
- name: Run NX build on shinkai-app-android
run: |
npx capacitor-set-version -v $VERSION -b $BUILD $APP_PATH
npx nx build:android shinkai-app --verbose
env:
VERSION: 0.0.0
BUILD: ${{github.run_number}}
APP_PATH: ./apps/shinkai-app

- name: Run NX build on shinkai-app-android
run: |
npx nx build:android shinkai-app --verbose
env:
ANDROID_KEYSTORE_FILE_PATH: ${{ secrets.ANDROID_KEYSTORE_FILE_PATH }}
ANDROID_KEYSTORE_PASS: ${{ secrets.ANDROID_KEYSTORE_PASS }}
ANDROID_KEYSTORE_ALIAS: ${{ secrets.ANDROID_KEYSTORE_ALIAS }}
ANDROID_KEYSTORE_ALIAS_PASS: ${{ secrets.ANDROID_KEYSTORE_ALIAS_PASS }}

- uses: actions/upload-artifact@v3
with:
name: shinkai-app-android
Expand Down
2 changes: 1 addition & 1 deletion apps/shinkai-app/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
"commands": [
"npx nx build shinkai-app",
"cd apps/shinkai-app && npx cap sync android",
"cd apps/shinkai-app && npx cap build android --keystorepath=$KEYSTORE_FILE_PATH --keystorepass=$KEYSTORE_PASS_DEVELOPMENT --keystorealias=$KEYSTORE_ALIAS_DEVELOPMENT --keystorealiaspass=$KEYSTORE_ALIAS_PASS_DEVELOPMENT",
"cd apps/shinkai-app && npx cap build android --keystorepath=$ANDROID_KEYSTORE_FILE_PATH --keystorepass=$ANDROID_KEYSTORE_PASS --keystorealias=$ANDROID_KEYSTORE_ALIAS --keystorealiaspass=$ANDROID_KEYSTORE_ALIAS_PASS",
"cp -r ./apps/shinkai-app/android/app/build/outputs/bundle/release/ ./dist/apps/shinkai-app-android"
],
"parallel": false
Expand Down

0 comments on commit 27afac3

Please sign in to comment.