forked from conradev/Open
-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (40 loc) · 1.25 KB
/
ci.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
name: Theos CI
on:
release:
types:
- created
jobs:
build:
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: recursive
- name: Theos Setup (Setup)
uses: NyaMisty/theos-action@master
- name: Get tag
if: ${{ startsWith(github.ref, 'refs/tags/') }}
id: tag
uses: dawidd6/action-get-tag@v1
- name: Build Release package - Rootful
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
make clean
TAGNAME=${{ steps.tag.outputs.tag }}
make package FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}+rootful
- name: Build Release package - Rootless
if: ${{ startsWith(github.ref, 'refs/tags/') }}
run: |
make clean
TAGNAME=${{ steps.tag.outputs.tag }}
make package THEOS_PACKAGE_SCHEME=rootless FINALPACKAGE=1 PACKAGE_VERSION=${TAGNAME#v}+rootless
- name: Release
uses: softprops/action-gh-release@v1
if: ${{ startsWith(github.ref, 'refs/tags/') }}
with:
files: |
${{ github.workspace }}/packages/*.deb
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}