forked from PlayCover/PlayCover
-
Notifications
You must be signed in to change notification settings - Fork 12
75 lines (65 loc) · 2.02 KB
/
2.nightly_release.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
71
72
73
74
75
name: Build nightly release
on:
workflow_dispatch:
schedule:
- cron: "30 19 * * *"
env:
CI: true
jobs:
build:
runs-on: macos-14
env:
GITHUB_ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Checkout
uses: actions/checkout@v4.1.0
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 'latest'
- name: Install dependencies
shell: bash
run: |
brew install graphicsmagick imagemagick swiftlint
gem install fastlane
bundle install
pip install setuptools
npm install --global create-dmg
- name: Set build number
shell: bash
run: |
fastlane run increment_build_number build_number:${{ github.run_number }}
- name: Fastlane Nightly
shell: bash
run: fastlane nightly
env:
MATCH_GIT_BASIC_AUTHORIZATION: ${{ secrets.MATCH_GIT_BASIC_AUTHORIZATION }}
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
FASTLANE_XCODEBUILD_SETTINGS_TIMEOUT: 120 # x86 is slooooooow
- name: Exract API_KEY
shell: bash
run: 'echo "$API_KEY" > apikey.json'
env:
API_KEY: ${{secrets.APPLE_API_KEY_JSON}}
- name: Create DMG
shell: bash
run: |
create-dmg ./output/PlayCover.app ./output
mv ./output/*.dmg ./output/PlayCover_nightly_${{ github.run_number }}.dmg
- name: Notarize DMG
continue-on-error: true
shell: bash
run: |
fastlane notarize_dmg package:output/PlayCover_nightly_${{ github.run_number }}.dmg
- name: Clean Up
shell: bash
run: rm apikey.json
- name: Upload Artifact
uses: actions/upload-artifact@v4.3.0
with:
name: PlayCover_nightly_${{ github.run_number }}.dmg
path: output/PlayCover_nightly_${{ github.run_number }}.dmg