Skip to content

Commit 5d860f2

Browse files
committed
Update Manual Trigger Workflow to include push triggers and streamline build steps
1 parent 4ab1ae2 commit 5d860f2

File tree

2 files changed

+12
-30
lines changed

2 files changed

+12
-30
lines changed

.github/workflows/main.yml

+12-30
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,25 @@
11
name: Manual Trigger Workflow
22

33
on:
4+
push:
5+
branches: [main, dev]
46
workflow_dispatch: {}
57

68
jobs:
79
build-and-pack:
810
runs-on: windows-latest
911
steps:
10-
- name: Checkout
12+
- name: Checkout code
1113
uses: actions/checkout@v4
12-
with:
13-
fetch-depth: 0
1414

15-
# Install the .NET Core workload
16-
- name: Install .NET Core
17-
uses: actions/setup-dotnet@v4
18-
with:
19-
dotnet-version: 8.0.x
20-
21-
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
22-
- name: Setup MSBuild.exe
15+
- name: Setup MSBuild
2316
uses: microsoft/setup-msbuild@v2
2417

25-
- name: Cake Action
26-
# You may pin to the exact commit or the version.
27-
# uses: cake-build/cake-action@5167c3f6a9e15c76f009de2acdfb9488552bc0b9
28-
uses: cake-build/cake-action@v3.0.0
29-
with:
30-
# The path of the Cake script to run.
31-
script-path: build.cake
32-
# The name of the task to execute. Note that this argument must be supported by the script.
33-
target: Pack
34-
# The verbosity level with which to run the script. Valid values are: Quiet, Minimal, Normal, Verbose or Diagnostic.
35-
verbosity: Normal
36-
# Tells Cake to do a dry run of the script.
37-
dry-run: false
38-
# Any custom parameters to pass to the script. Multiple parameters are defined on separate lines.
39-
#arguments: # optional
40-
# The version of Cake to install. Either a specific version, "latest" (default) or "tool-manifest".
41-
cake-version: latest
42-
# Flag for if Cake modules should be installed/bootstrapped.
43-
cake-bootstrap: false
18+
- name: Setup NuGet
19+
uses: NuGet/setup-nuget@v2
20+
21+
- name: Restore NuGet Packages
22+
run: nuget restore ./source/FreeGameNotifications.sln
23+
24+
- name: Build
25+
run: msbuild ./source/FreeGameNotifications.sln /p:Configuration=Release /p:Platform="Any CPU"

tools/toolbox.zip

-1.41 MB
Binary file not shown.

0 commit comments

Comments
 (0)