-
Notifications
You must be signed in to change notification settings - Fork 12
56 lines (42 loc) · 1.26 KB
/
WindowResizer.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
name: WindowResizer
on:
push:
tags:
- "*.*.*"
jobs:
build:
strategy:
matrix:
configuration: [Release]
runs-on: windows-latest
env:
Solution_Name: WindowResizer.sln
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Get Tag
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
shell: bash
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup NuGet.exe for use with actions
uses: NuGet/[email protected]
- name: Navigate to Workspace
run: cd $GITHUB_WORKSPACE
- name: Build App
run: .\Installer\build.ps1 ${{ steps.get_version.outputs.VERSION }}
- name: Build CLI
run: .\Installer\build-cli.ps1 ${{ steps.get_version.outputs.VERSION }}
- name: Rename
run: Move-Item .\Releases\Setup.exe .\Releases\WindowResizer-${{ steps.get_version.outputs.VERSION }}.exe
- name: Show files
run: Get-ChildItem .\Releases
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
# prerelease: true
files: "Releases/*"