-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (36 loc) · 1.1 KB
/
main.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
name: Manual Trigger Workflow
on:
push:
branches: [main, dev]
workflow_dispatch: {}
jobs:
build-and-pack:
runs-on: windows-latest
env:
ACTIONS_RUNTIME_TOKEN: ${{ secrets.ACTIONS_RUNTIME_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup MSBuild
uses: microsoft/setup-msbuild@v2
- name: Setup NuGet
uses: NuGet/setup-nuget@v2
# - name: Restore NuGet Packages
# run: nuget restore ./source/FreeGameNotifications.sln
# - name: Build
# run: msbuild ./source/FreeGameNotifications.sln /p:Configuration=Release /p:Platform="Any CPU"
- name: Setup .NET Core
uses: actions/setup-dotnet@v4
with:
dotnet-version: "8.0.x"
- name: Run the Cake script
uses: cake-build/cake-action@v3
with:
script-path: ./build.cake
target: Pack
# - name: Install Cake.Tool
# run: |
# dotnet tool install --global Cake.Tool
# dotnet tool restore
# - name: Run Cake build
# run: dotnet cake --target=Pack