-
Notifications
You must be signed in to change notification settings - Fork 27
107 lines (91 loc) · 3.68 KB
/
build.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#credit goes to https://github.com/cpguy5089/AmongUsMenu_Ghost/blob/main/.github/workflows/build.yml
name: Build Project
on:
workflow_dispatch:
release:
types: [published]
push:
branches: [ "main" ]
jobs:
Build_Release:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/[email protected]
- name: Build Release
shell: bash
run: '"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Msbuild/Current/Bin/MSBuild.exe" -property:Configuration=Release'
- name: Build Release_Version
shell: bash
run: '"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Msbuild/Current/Bin/MSBuild.exe" -property:Configuration=Release_Version'
- name: Package Release Builds
shell: cmd
run: |
move /y Release\SickoMenu.dll SickoMenu.dll
move /y Release_Version\version.dll version.dll
tar -caf Release.zip SickoMenu.dll version.dll LICENSE
- name: Upload Release Artifact
uses: actions/[email protected]
with:
name: Release
path: Release.zip
Build_Debug:
runs-on: windows-2022
steps:
- name: Checkout
uses: actions/[email protected]
- name: Build Debug
shell: bash
run: '"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Msbuild/Current/Bin/MSBuild.exe" -property:Configuration=Debug'
- name: Build Debug_Version
shell: bash
run: '"C:/Program Files/Microsoft Visual Studio/2022/Enterprise/Msbuild/Current/Bin/MSBuild.exe" -property:Configuration=Debug_Version'
- name: Package Debug Builds
shell: cmd
run: |
move /y Debug\SickoMenu.dll SickoMenu.dll
move /y Debug_Version\version.dll version.dll
tar -caf Debug.zip SickoMenu.dll version.dll LICENSE
- name: Upload Debug Artifact
uses: actions/[email protected]
with:
name: Debug
path: Debug.zip
AutoRelease:
runs-on: windows-2022
needs: [Build_Release, Build_Debug]
steps:
# - name: Parse tag semver
# uses: booxmedialtd/ws-action-parse-semver@3576f3a20a39f8752fe0d8195f5ed384090285dc
# id: semver_parser
# with:
# input_string: ${{ github.ref }}
# version_extractor_regex: '\/v(.*)$'
# please keep this for an adjustment period, will help diagnose any issues
# - name: Debug semver
# run: |
# echo 'major: ${{ steps.semver_parser.outputs.major }}'
# echo 'minor: ${{ steps.semver_parser.outputs.minor }}'
# echo 'patch: ${{ steps.semver_parser.outputs.patch }}'
# echo 'feature (is pre-release?): ${{ steps.semver_parser.outputs.prerelease }}'
# echo 'feature ver: ${{ steps.semver_parser.outputs.build }}'
# echo 'full: ${{ steps.semver_parser.outputs.fullversion }}'
# echo 'is pre-release: ${{ steps.semver_parser.outputs.prerelease != 0 }}'
- name: Download Release Artifact
uses: actions/[email protected]
with:
name: Release
- name: Download Debug Artifact
uses: actions/[email protected]
with:
name: Debug
- name: Automatic Releases
uses: marvinpinto/action-automatic-releases@latest #maybe this fixed auto release versioning?
id: "automatic_releases"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}" #this is gonna give me a stroke
automatic_release_tag: "latest"
prerelease: false
files: |
Release.zip
Debug.zip