-
Notifications
You must be signed in to change notification settings - Fork 5
59 lines (52 loc) · 1.52 KB
/
build-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
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- '*-*-*-*'
branches:
- master
name: Build Release
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Cache Qt
id: cache-qt
uses: actions/cache@v4
with:
path: ${{runner.workspace}}/Qt
key: ${{ runner.os }}-qttools-${{ hashFiles('**/reset-caches.txt') }}
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: '5.9.1'
dir: ${{runner.workspace}}/Qt
setup-python: 'true'
archives: 'qtbase qttools'
cache: ${{ steps.cache-qt.outputs.cache-hit }}
- name: Build RCC Files
run: |
pwd
qmake -v
mkdir src/build
python ./ci_scripts/build_resources.py
- name: Get tag name
if: startswith( github.ref, 'refs/tags/')
id: get_tag_name
run: echo "TAGNAME=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_OUTPUT
- name: Create Release
if: startswith( github.ref, 'refs/tags/')
uses: ncipollo/release-action@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: Custom Icon Themes (${{ steps.get_tag_name.outputs.TAGNAME }})
body: |
Changes in this Release
- First Change
- Second Change
draft: true
prerelease: false
artifacts: './src/build/*.rcc'