forked from gsainfoteam/ziggle-flutter
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (51 loc) · 1.72 KB
/
production.yml
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
49
50
51
52
53
54
name: promote to production (android, iOS)
on:
create:
tags:
- v*
jobs:
promote:
strategy:
fail-fast: false
matrix:
build-os: [ubuntu-latest, macos-15]
include:
- os: Android
build-os: ubuntu-latest
- os: iOS
build-os: macos-15
name: Promote ${{ matrix.os }} App to Production
runs-on: ${{ matrix.build-os }}
concurrency:
group: ${{ matrix.os }}-production
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
- name: setup env
run: |
echo "directory=$(echo ${{ matrix.os }} | tr '[:upper:]' '[:lower:]')" >> $GITHUB_ENV
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.2.0"
- name: Run fastlane
run: |
bundle install
bundle exec fastlane production
env:
APP_STORE_CONNECT_API_KEY_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }}
APP_STORE_CONNECT_API_KEY_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }}
APP_STORE_CONNECT_API_KEY_KEY: ${{ secrets.APP_STORE_CONNECT_KEY_CONTENT }}
SLACK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
SUPPLY_JSON_KEY_DATA: ${{ secrets.SUPPLY_JSON_KEY_DATA }}
working-directory: ${{ env.directory }}
- name: action-slack
uses: 8398a7/action-slack@v3
if: ${{ failure() || cancelled() }}
with:
status: ${{ job.status }}
author_name: Github Action Build
mention: ${{ secrets.SLACK_MENTION }}
if_mention: "failure,cancelled"
fields: repo,message,commit,author,action,eventName,ref,workflow,job,took
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}