Skip to content

Commit

Permalink
Add GitHub Actions workflow for deploying to Google Play.
Browse files Browse the repository at this point in the history
  • Loading branch information
sshropshire committed Oct 16, 2023
1 parent 7ffa2f2 commit 438c1d5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/release_demo.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Release Demo
on: workflow_dispatch
env:
DEMO_KEYSTORE_FILE: /home/runner/demo_keystore.keystore
DEMO_GCP_SERVICE_ACCOUNT_CREDENTIALS_FILE: /home/runner/demo_gcp_service_account_credentials.json
jobs:
publish-release:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Java 11
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'microsoft'
- name: Decode Demo Keystore
run: |
echo "${{ secrets.DEMO_KEYSTORE_BASE64_ENCODED }}" > ~/demo_keystore.keystore.b64
base64 -d ~/demo_keystore.keystore.b64 > "${DEMO_KEYSTORE_FILE}"
- name: Decode Demo GCP Service Account Credentials
echo "${{ secrets.DEMO_GCP_SERVICE_ACCOUNT_CREDENTIALS_BASE64_ENCODED }}" > ~/gcp_service_account_credentials.json.b64
base64 -d ~/gcp_service_account_credentials.json.b64 > "${DEMO_GCP_SERVICE_ACCOUNT_CREDENTIALS_FILE}"
- name: Publish Release Bundle
run: ./gradlew publishReleaseBundle
env:
DEMO_KEYSTORE_PASSWORD: ${{ secrets.DEMO_KEYSTORE_PASSWORD }}
DEMO_KEY_ALIAS: ${{ secrets.DEMO_KEY_ALIAS }}
DEMO_KEY_PASSWORD: ${{ secrets.DEMO_KEY_PASSWORD }}

0 comments on commit 438c1d5

Please sign in to comment.