-
-
Notifications
You must be signed in to change notification settings - Fork 1
36 lines (34 loc) · 983 Bytes
/
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
name: Compile Mod
on:
release:
types:
- created
push:
pull_request:
permissions:
contents: write
id-token: write
pages: write
jobs:
lint-and-compile:
strategy:
matrix:
configuration: [Debug, Release]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/[email protected]
with:
dotnet-version: "7.0.x"
- run: dotnet restore ${{ github.event.repository.name }}.sln
- uses: justalemon/[email protected]
with:
version: 1.9.3.${{ github.run_number }}
use-tag: true
csproj-files: "**/root.props"
- run: dotnet build ${{ github.event.repository.name }}.sln -c ${{ matrix.configuration }}
working-directory: ${{ env.GITHUB_WORKSPACE }}
- uses: actions/upload-artifact@v3
with:
name: ${{ github.event.repository.name }}.${{ matrix.configuration }}
path: bin/${{ matrix.configuration }}