Skip to content

Update build-release.yml #14

Update build-release.yml

Update build-release.yml #14

Workflow file for this run

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@v3
- name: Cache Qt
id: cache-qt
uses: actions/cache@v3
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: 'false'
cached: ${{ 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'