-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (51 loc) · 1.55 KB
/
build.yaml
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
name: Build
on:
workflow_dispatch:
push:
branches:
- v*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build
runs-on: macos-13
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- name: Install Theos
uses: Randomblock1/theos-action@v1.4
with:
# Where to install Theos
theos-dir: ${{ github.workspace }}/theos
# Where to clone Theos from (git URL)
theos-src: https://github.com/theos/theos
# Where to clone the iOS SDKs from (GitHub repository URL)
theos-sdks: https://github.com/theos/sdks
# Which branch to clone from SDK repo
theos-sdks-branch: master
# Whether to enable Orion, which adds support for Swift tweaks
orion: false
- name: Run build script
run: chmod +x ./build.sh && ./build.sh
- name: Create GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
run: >-
gh release create
'${{ github.ref_name }}'
--repo '${{ github.repository }}'
--notes ""
-t 'Release ${{ github.ref_name }}'
- name: Upload artifact signatures to GitHub Release
env:
GITHUB_TOKEN: ${{ github.token }}
# Upload to GitHub Release using the `gh` CLI.
# `dist/` contains the built packages, and the
# sigstore-produced signatures and certificates.
run: >-
gh release upload
'${{ github.ref_name }}' packages/**
--repo '${{ github.repository }}'