forked from EthanArbuckle/Apollo-CustomApiCredentials
-
Notifications
You must be signed in to change notification settings - Fork 18
63 lines (52 loc) · 1.55 KB
/
buildapp.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
on:
workflow_dispatch:
inputs:
prerelease:
description: 'Pre-release?'
required: true
type: boolean
name: Build and release
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build and release tweak
runs-on: macos-13
permissions:
contents: write
steps:
- name: Checkout main
uses: actions/checkout@v4
with:
submodules: 'recursive'
- name: Parse control file version
id: parse_control
run: |
version=$(sed -n 's/^Version: //p' control | sed 's/~/-/g')
echo "TWEAK_VERSION=$version" >> "$GITHUB_OUTPUT"
- name: Install Dependencies
run: brew install ldid dpkg make
- name: Set PATH environment variable
run: echo "$(brew --prefix make)/libexec/gnubin" >> $GITHUB_PATH
- name: Setup Theos
uses: actions/checkout@v4
with:
repository: theos/theos
ref: master
path: theos
submodules: recursive
- name: Build package
run: make package FINALPACKAGE=1
env:
THEOS: ${{ github.workspace }}/theos
- name: Create release
id: create_release
uses: softprops/action-gh-release@v0.1.15
env:
TWEAK_VERSION: ${{ steps.parse_control.outputs.TWEAK_VERSION }}
with:
tag_name: v${{ env.TWEAK_VERSION }}
name: v${{ env.TWEAK_VERSION }}
files: packages/*.deb
prerelease: ${{ inputs.prerelease }}