-
Notifications
You must be signed in to change notification settings - Fork 0
152 lines (130 loc) Β· 4.8 KB
/
Copy pathrelease.yml
File metadata and controls
152 lines (130 loc) Β· 4.8 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: π 릴리μ¦
on:
workflow_dispatch:
inputs:
version:
description: "π¦ λ¦΄λ¦¬μ¦ λ²μ (μ: 1.1.0)"
required: true
type: string
permissions:
contents: write
jobs:
prepare:
name: π¦ λ¦΄λ¦¬μ¦ μ€λΉ
runs-on: self-hosted
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
- uses: ./.github/actions/gradle-setup
with:
local-properties: ${{ secrets.LOCAL_PROPERTIES }}
google-services-dev: ${{ secrets.GOOGLE_SERVICES_DEV }}
google-services-real: ${{ secrets.GOOGLE_SERVICES_REAL }}
- name: βοΈ Git μ€μ
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
- name: π CHANGELOG μμ±
uses: orhun/git-cliff-action@v4
with:
config: cliff.toml
args: --tag ${{ inputs.version }} -o CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: π‘οΈ Project Guard μ€ν
run: ./gradlew projectGuardAggregateCheck
- name: π 리ν¬νΈ μ΄λ
run: |
mkdir -p docs/projectGuard
cp -r build/reports/projectguard/* docs/projectGuard/
- name: πΎ 컀λ°
run: |
git add -A
git commit -m "${{ inputs.version }}"
- name: π·οΈ νκ·Έ & νΈμ
run: |
git tag -a "${{ inputs.version }}" -m "Release ${{ inputs.version }}"
git push origin "${{ inputs.version }}"
- name: π€ λΈλμΉ νΈμ
run: git push origin HEAD
distribute-android:
name: π€ Android Firebase λ°°ν¬
runs-on: self-hosted
needs: prepare
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
- uses: ./.github/actions/gradle-setup
with:
local-properties: ${{ secrets.LOCAL_PROPERTIES }}
google-services-dev: ${{ secrets.GOOGLE_SERVICES_DEV }}
google-services-real: ${{ secrets.GOOGLE_SERVICES_REAL }}
- name: π¨ APK λΉλ
run: ./gradlew :app:android:assembleRealRelease -Pbuildkonfig.flavor=real --no-build-cache --no-configuration-cache
- name: π₯ Firebase App Distribution μ
λ‘λ
uses: emertozd/Firebase-Distribution-Github-Action@v4
with:
appId: ${{ secrets.FIREBASE_ANDROID_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
groups: Tester
file: app/android/build/outputs/apk/real/release/android-real-release.apk
releaseNotesFile: CHANGELOG.md
distribute-ios:
name: π iOS Firebase λ°°ν¬
runs-on: self-hosted
needs: prepare
steps:
- uses: actions/checkout@v6
with:
ref: ${{ github.ref }}
- uses: ./.github/actions/gradle-setup
with:
local-properties: ${{ secrets.LOCAL_PROPERTIES }}
dev-xcconfig: ${{ secrets.DEV_XCCONFIG }}
real-xcconfig: ${{ secrets.REAL_XCCONFIG }}
google-services-dev: ${{ secrets.GOOGLE_SERVICES_DEV }}
google-services-real: ${{ secrets.GOOGLE_SERVICES_REAL }}
google-service-info-dev-debug: ${{ secrets.GOOGLE_SERVICE_INFO_DEV_DEBUG }}
google-service-info-real-debug: ${{ secrets.GOOGLE_SERVICE_INFO_REAL_DEBUG }}
google-service-info-real-release: ${{ secrets.GOOGLE_SERVICE_INFO_REAL_RELEASE }}
- name: π¦ Archive
run: |
xcodebuild archive \
-project Diary/Diary.xcodeproj \
-scheme Release \
-configuration RealRelease \
-archivePath Diary/build/Diary.xcarchive \
-allowProvisioningUpdates
- name: π¨ IPA Export
run: |
xcodebuild -exportArchive \
-archivePath Diary/build/Diary.xcarchive \
-exportPath Diary/build/ipa \
-exportOptionsPlist Diary/ExportOptions.plist \
-allowProvisioningUpdates
- name: π₯ Firebase App Distribution μ
λ‘λ
uses: emertozd/Firebase-Distribution-Github-Action@v4
with:
appId: ${{ secrets.FIREBASE_IOS_APP_ID }}
serviceCredentialsFileContent: ${{ secrets.FIREBASE_SERVICE_ACCOUNT }}
groups: Tester
file: Diary/build/ipa/Apps/Diary.ipa
releaseNotesFile: CHANGELOG.md
github-release:
name: π GitHub λ¦΄λ¦¬μ¦ μμ±
runs-on: self-hosted
needs: prepare
steps:
- uses: actions/checkout@v6
with:
ref: ${{ inputs.version }}
- name: π GitHub λ¦΄λ¦¬μ¦ μμ±
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.version }}
name: ${{ inputs.version }}
body_path: CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}