forked from sungaila/SUBSTitute
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (32 loc) · 918 Bytes
/
package.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
name: Build & Package MSI
on:
# Whenever a release is created with tag v.*.*.*
push:
tags:
- 'v*.*.*'
jobs:
release:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x
- name: Setup Ninja
uses: seanmiddleditch/gha-setup-ninja@master
- name: Setup CMake
uses: jwlawson/[email protected]
with:
cmake-version: '3.20.x'
- name: Configure
run: cmake -B build -G "Ninja Multi-Config"
- name: Build & Package
run: cmake --build build --config Release --target package
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: build/SUBSTitute-*.msi
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}