Skip to content

Commit

Permalink
feat: Test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentKobz committed Jul 4, 2024
1 parent 91c20cf commit bbcb2db
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 23 deletions.
27 changes: 7 additions & 20 deletions .github/workflows/playstore.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,29 +13,18 @@ jobs:
uses: actions/checkout@v4

- name: Setup ruby
uses: actions/setup-ruby@v1
uses: ruby/setup-ruby@v1
with:
ruby-version: "3.x"

- name: Setup fastlane
run: |
cd enioka_scan
bundle install
cd ..
ruby-version: "3.0.2"
bundler-cache: true

- name: Restore json key # make sure that you restore the key in the correct directory (ref. fastlane/Appfile)
run: |
cd enioka_scan
cd fastlane
echo "${{ secrets.GOOGLE_API_PUB_JSON }}" | base64 --decode > service-account.json
cd ../..
run: echo "${{ secrets.GOOGLE_API_PUB_JSON_BASE64 }}" | base64 --decode > ${{ github.workspace }}/service-account.json

- name: Restore keystore # make sure that you restore the key in the correct directory (same as app/gradle.properties)
run: |
cd enioka_scan/app
echo "${{ secrets.SIGN_KEY }}" > myKeystore.keystore.asc
gpg -d --passphrase ${{ secrets.SIGN_PASSWORD }} --batch myKeystore.keystore.asc > myKeystore.keystore
cd ../..
echo "${{ secrets.SIGN_KEY }}" > ${{ github.workspace }}/myKeystore.keystore.asc
echo "${{ secrets.SIGN_PASSWORD }}" > ${{ github.workspace }}/myKeystore.keystore
- name: Set up environment
uses: actions/setup-java@v4
Expand All @@ -47,6 +36,4 @@ jobs:
uses: gradle/actions/setup-gradle@v3

- name: Upload app to Play Store (Internal track)
run: |
cd enioka_scan
bundle exec fastlane internal
run: bundle exec fastlane internal
2 changes: 1 addition & 1 deletion fastlane/Appfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
json_key_file("fastlane/service-account.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
json_key_file("service-account.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("com.enioka.scanner.demo") # e.g. com.krausefx.app
4 changes: 2 additions & 2 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ platform :android do

# Generate AAB file
gradle(
task: "bundle",
build_type: "Release"
task: "demoscannerapp:bundle",
build_type: "Debug"
)

# Upload the AAB to play store (internal track)
Expand Down

0 comments on commit bbcb2db

Please sign in to comment.