-
Notifications
You must be signed in to change notification settings - Fork 99
48 lines (48 loc) · 1.35 KB
/
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
name: release
run-name: ${{ github.actor }} release build
on:
push:
tags:
- "v*"
jobs:
build-windows:
name: "Build Windows"
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
- uses: ilammy/msvc-dev-cmd@v1
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
version: 5.15.2
cache: true
- name: install freetype
run: nuget install packages.config
- name: qmake
run: qmake -config release -tp vc -r FontBuilder.pro
- name: make
run: msbuild -p:Configuration=Release
- name: package
run: windeployqt bin/FontBuilder.exe
- name: Archive release
uses: actions/upload-artifact@v3
with:
name: windows-build
path: bin
create-relese:
name: "Create release"
runs-on: ubuntu-latest
needs: build-windows
steps:
- name: Download all workflow run artifacts
uses: actions/download-artifact@v3
- name: Compress windows build
run: zip -r FontBuilder-windows.zip windows-build
- uses: "marvinpinto/action-automatic-releases@latest"
with:
title: "Release : ${{ github.ref_name }}"
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: "latest"
files: |
*.zip