Skip to content

Deploy Production

Deploy Production #3

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]
- name: Set up Java
uses: actions/[email protected]
with:
distribution: 'zulu'
java-version: '17'
- 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: bumpver update
- 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