-
Notifications
You must be signed in to change notification settings - Fork 1
/
release-github.yml
70 lines (65 loc) · 1.74 KB
/
release-github.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: Release
on:
workflow_dispatch:
inputs:
releaseStage:
type: choice
description: 'type of release'
required: true
default: 'beta'
options:
- alpha
- beta
- production
versionChangeType:
type: choice
description: 'type of version bump'
required: true
default: 'none'
options:
- major
- minor
- patch
- none
platform:
type: choice
description: 'platform to build for'
required: true
default: 'all'
options:
- all
- ios
- android
branch:
type: string
description: 'branch to build'
required: true
default: 'main'
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
ref: ${{ github.event.inputs.branch }}
- name: Tagging
id: tagging
uses: echobind/mobile-release-actions/tagging@v1
with:
github-tagging: true
branch: ${{ github.event.inputs.branch }}
version-change-type: ${{ github.event.inputs.versionChangeType }}
build-version: ${{ github.run_number }}
- name: Install EAS CLI
uses: expo/expo-github-action@v7
with:
expo-version: 5.x
eas-version: latest
token: ${{ secrets.EXPO_CI_TOKEN }}
- name: Build
uses: echobind/mobile-release-actions/eas-build@v1
with:
platform: ${{ github.event.inputs.platform }}
profile: ${{ github.event.inputs.releaseStage }}
submit: ${{ github.event.inputs.releaseStage != 'alpha' }}