-
Notifications
You must be signed in to change notification settings - Fork 6
109 lines (97 loc) · 3.37 KB
/
Copy pathrelease.yaml
File metadata and controls
109 lines (97 loc) · 3.37 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
name: Release Workflow
on:
release:
types:
- created
concurrency:
group: release_workflow
cancel-in-progress: true
jobs:
build-android:
runs-on: ubuntu-latest
environment: build
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v6
with:
node-version: 24
- name: Get tag
id: tag
run: echo "::set-output name=tag::`git describe --tags`"
- name: Install dependencies
run: npm ci
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: 'Europe/Paris'
timezoneMacos: 'Europe/Paris'
- name: add keys
run: |
mkdir -p android/keystores
echo "${{ secrets.KEYSTORE_PROPERTIES_64 }}" | base64 -d > android/keystores/release.keystore.properties
echo "${{ secrets.JKS_64 }}" | base64 -d > android/app/application-amicale.jks
- name: build APK
run: npm run apk
- name: Upload APK to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: android/app/build/outputs/apk/release/app-release.apk
asset_name: campus-${{steps.tag.outputs.tag}}.apk
asset_content_type: application/vnd.android.package-archive
- name: build AAB
run: npm run bundle
- name: Upload AAB to Google Play
uses: r0adkll/upload-google-play@v1
with:
serviceAccountJsonPlainText: ${{ secrets.SERVICE }}
packageName: fr.amicaleinsat.application
releaseFiles: android/app/build/outputs/bundle/release/app-release.aab
track: internal
releaseName: ${{steps.tag.outputs.tag}}
status: completed
build-ios:
runs-on: macos-latest
environment: build-ios
steps:
- uses: actions/checkout@v6
- uses: actions/setup-node@v3
with:
node-version: 24
- name: Ensure latest XCode is used
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: latest-stable
- name: Get tag
id: tag
run: echo "::set-output name=tag::`git describe --tags`"
- name: Install dependencies
run: npm ci
- uses: szenius/set-timezone@v1.0
with:
timezoneLinux: 'Europe/Paris'
timezoneMacos: 'Europe/Paris'
- name: Install pod dependencies
run: |
cd ios && pod install
- name: Build IOS App
uses: yukiarrr/ios-build-action@v1.11.0
with:
project-path: ios/Campus.xcodeproj
p12-base64: ${{ secrets.IOS_P12_BASE64 }}
mobileprovision-base64: ${{ secrets.IOS_MOBILE_PROVISION_BASE64 }}
code-signing-identity: 'iPhone Distribution'
team-id: ${{ secrets.IOS_TEAM_ID }}
certificate-password: ${{ secrets.IOS_CERTIFICATE_PASSWORD }}
workspace-path: ios/Campus.xcworkspace
scheme: Campus
- name: 'Upload app to TestFlight'
uses: apple-actions/upload-testflight-build@v4
with:
app-path: 'output.ipa'
issuer-id: ${{ secrets.APPSTORE_ISSUER_ID }}
api-key-id: ${{ secrets.APPSTORE_API_KEY_ID }}
api-private-key: ${{ secrets.APPSTORE_API_PRIVATE_KEY }}
uses-non-exempt-encryption: 'false'
wait-for-processing: 'true'