Deploy Production #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Production | |
on: workflow_dispatch | |
jobs: | |
production: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
if: github.ref == 'refs/heads/main' | |
steps: | |
- uses: actions/[email protected] | |
with: | |
ssh-key: ${{ secrets.RELEASE_SSH_KEY }} | |
- name: Set up Ruby | |
uses: ruby/[email protected] | |
with: | |
bundler-cache: true | |
- name: Set up Java | |
uses: actions/[email protected] | |
with: | |
distribution: "zulu" | |
java-version: "21" | |
- name: Setup build dependencies | |
run: make deps | |
- name: Configure Git user | |
run: | | |
git config user.name "jocmp" | |
git config user.email "[email protected]" | |
- name: Bump version | |
run: make bump-release-production | |
- name: Deploy App to Production | |
env: | |
ENCODED_GOOGLE_PLAY_CREDENTIALS: ${{ secrets.ENCODED_GOOGLE_PLAY_CREDENTIALS }} | |
ENCODED_GOOGLE_SERVICES: ${{ secrets.ENCODED_GOOGLE_SERVICES }} | |
ENCODED_RELEASE_KEYSTORE: ${{ secrets.ENCODED_RELEASE_KEYSTORE }} | |
ENCODED_SECRETS_PROPERTIES: ${{ secrets.ENCODED_SECRETS_PROPERTIES }} | |
run: make deploy-production | |
- name: Sync versioning to Main | |
run: git push --follow-tags |