-
Notifications
You must be signed in to change notification settings - Fork 1
33 lines (28 loc) · 862 Bytes
/
Compile.yml
File metadata and controls
33 lines (28 loc) · 862 Bytes
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
name: Compile solution
on:
push:
branches:
- '*'
pull_request:
jobs:
windows:
name: windows-2025
runs-on: windows-2025
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Cache packages
uses: actions/cache@v5
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', 'Directory.Build.props', 'Directory.Packages.props') }}
restore-keys: ${{ runner.os }}-nuget-
- name: Compile solution
run: dotnet run -c Release
working-directory: "build"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
DOTNET_ENVIRONMENT: ${{ github.ref == 'refs/heads/main' && 'Production' || 'Development' }}
NuGet__InternalApiKey: ${{ secrets.GITHUB_TOKEN }}