-
Notifications
You must be signed in to change notification settings - Fork 11
48 lines (37 loc) · 1.12 KB
/
build-artifacts.yaml
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
name: Build Artifacts
permissions:
contents: write
on:
push:
branches:
- '*'
jobs:
build-artifacts:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up .NET Core
uses: actions/[email protected]
with:
dotnet-version: 6
- name: NuGet Restore
run: dotnet restore
- name: Build and Publish project
run: dotnet publish BattleBitAPIRunner/BattleBitAPIRunner.csproj -c Release -o ./publish --self-contained false --framework net6.0 --runtime win-x64
- name: Build nuget
run: dotnet build BattleBitAPIRunner/BattleBitAPIRunner.csproj -c Release
- name: Create NuGet package
run: dotnet pack BBRAPIModules/BBRAPIModules.csproj --configuration Release --output ./nuget
- name: Upload NuGet package artifact
uses: actions/upload-artifact@v2
with:
name: NuGet Package
path: ./nuget/*.nupkg
- name: Upload Release artifact
uses: actions/upload-artifact@v2
with:
name: BattleBitAPIRunner-beta
path: ./publish/*