-
Notifications
You must be signed in to change notification settings - Fork 4
55 lines (45 loc) · 1.38 KB
/
windows.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
name: windows
on:
push:
tags:
- "v*"
pull_request:
tags:
- "v*"
env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: .
# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release
jobs:
build:
runs-on: windows-2019
if: github.repository == 'hzqst/metamod-fallguys'
steps:
- uses: hzqst/[email protected]
- name: Build all
working-directory: ${{env.GITHUB_WORKSPACE}}
run: |
cd scripts
build-all-win32.bat
shell: cmd
- name: Remove placeholder
working-directory: ${{env.GITHUB_WORKSPACE}}
run: del "build\addons\metamod\dlls\.placeholder"
shell: cmd
- name: Archive the build directory
uses: thedoctor0/zip-release@main
with:
type: 'zip'
filename: 'metamod-fallguys-windows-x86.zip'
path: 'build'
exclusions: '.placeholder'
- name: Create Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
name: metamod-fallguys-${{ github.ref }}
files: |
metamod-fallguys-windows-x86.zip