-
-
Notifications
You must be signed in to change notification settings - Fork 87
48 lines (46 loc) · 1.39 KB
/
release-beta.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 "[email protected]"
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 }}