Release Beta #110
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: Release Beta | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
workflow_dispatch: | |
# inputs: | |
# environment: | |
# description: 'git-tag' | |
# required: true | |
jobs: | |
release: | |
name: Release to firebase beta | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
ref: master | |
token: ${{ secrets.GH_TOKEN }} | |
- name: Set up keys | |
run: 'echo s3_test_identity_pool_id=$S3_TEST_IDENTITY_POOL_ID > treetracker.keys.properties' | |
shell: bash | |
env: | |
S3_TEST_IDENTITY_POOL_ID: ${{secrets.S3_TEST_IDENTITY_POOL_ID}} | |
- name: Set up Ruby 2.7.6 | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 2.7.6 | |
- name: Install bundle | |
run: | | |
gem install bundler | |
bundle install | |
- name: Set up git | |
run: | | |
git config --local user.email "automation@treetracker.org" | |
git config --local user.name "Treetracker Automation" | |
- name: Run fastlane | |
run: | | |
bundle exec fastlane firebase_beta | |
bundle exec fastlane update_plugins | |
env: | |
FIREBASE_TOKEN: ${{secrets.FIREBASE_TOKEN}} | |
SLACK_URL: ${{secrets.SLACK_URL}} | |
SLACK_URL_QC: ${{secrets.SLACK_URL_QC}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} |