-
-
Notifications
You must be signed in to change notification settings - Fork 140
55 lines (45 loc) · 1.31 KB
/
build-loop.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
name: Build Loop
on:
workflow_dispatch:
push:
branches:
- develop
paths:
- Loop/**
permissions:
contents: write
jobs:
build_with_signing:
name: Build Loop
runs-on: macos-13
steps:
- name: Checkout repository
uses: actions/checkout@v3.5.3
- name: Switch Xcode version
run: |
sudo xcode-select -s "/Applications/Xcode_15.0.app"
/usr/bin/xcodebuild -version
- name: Codesign Loop.app
uses: apple-actions/import-codesign-certs@v2
with:
p12-file-base64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
p12-password: ${{ secrets.P12_PASSWORD }}
- name: Build Loop.app
run: |
sh ./resources/build_loop.sh
- name: Zip Loop.app
run: |
ditto -c -k --sequesterRsrc --keepParent Loop.app Loop.zip
- name: Upload achived app
uses: actions/upload-artifact@v3.1.2
with:
name: Loop.zip
path: Loop.zip
- name: Publish Prerelease
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
automatic_release_tag: "prerelease"
prerelease: true
title: "Prerelease"
files: Loop.zip