-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (39 loc) · 1.37 KB
/
Release-Patch.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
name: Release-Patch
env:
solution: POGEngine.sln
on:
# Allow us to run the workflow manually
workflow_dispatch:
# Build on Windows for x64 machines
jobs:
Windows-x64:
runs-on: windows-latest
steps:
- uses: actions/[email protected]
- name: Add MSBuild to PATH
uses: microsoft/setup-msbuild@v1
- name: Set up projects and solution
working-directory: ${{ github.workspace }}\Source
run: .\SetupWorkspace_VS2019.bat
- name: Build solution
working-directory: ${{ github.workspace }}\Source
run: msbuild /v:normal /m /p:Configuration=Dist /p:Platform=x64 ${{ env.solution }}
- name: Create release
id: create
uses: zendesk/action-create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
auto_increment_type: patch
tag_schema: semantic
release_name: Windows-x64
draft: false
prerelease: true
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ${{ github.workspace }}\Source\Build\Builds\Bin\Dist-windows-x86_64\Example\Example.exe
asset_name: Example.exe
tag: ${{ steps.create.outputs.current_tag }}
release_name: Windows-x64