@@ -3,35 +3,32 @@ name: Build
3
3
on :
4
4
push :
5
5
paths :
6
- - ' SiraUtil/**'
7
- - ' SiraUtil.sln'
8
- - ' .github/workflows/build.yml'
6
+ - .github/workflows/build.yml
7
+ - SiraUtil/**
9
8
10
9
jobs :
11
10
build :
12
11
name : Build
13
- runs-on : ubuntu-22.04
12
+ runs-on : windows-latest
14
13
steps :
15
- - uses : actions/checkout@v4
14
+ - name : Check out
15
+ uses : actions/checkout@v4
16
+
16
17
- name : Set up Beat Saber
17
- uses : nicoco007/setup-beat-saber@v0.1
18
+ uses : nicoco007/setup-beat-saber@v1
18
19
with :
19
- access-token : ${{ secrets.BEAT_SABER_REFERENCE_ASSEMBLIES_TOKEN }}
20
- manifest : ${{ github.workspace }}/SiraUtil/manifest.json
21
- - name : Build
22
- id : build
23
- env :
24
- FrameworkPathOverride : /usr/lib/mono/4.8-api
25
- run : dotnet build SiraUtil/SiraUtil.csproj --configuration Release
26
- - name : Git Status
27
- run : git status
28
- - name : Echo File Name
29
- run : echo $BUILDTEXT \($ASSEMBLYNAME\)
30
- env :
31
- BUILDTEXT : Filename=${{ steps.build.outputs.filename }}
32
- ASSEMBLYNAME : AssemblyName=${{ steps.build.outputs.assemblyname }}
33
- - name : Upload Artifact
20
+ access-token : ${{ secrets.GITHUB_TOKEN }}
21
+ project-path : ${{ github.workspace }}\SiraUtil\SiraUtil.csproj
22
+
23
+ - name : Add NuGet source
24
+ run : dotnet nuget update source "nicoco007 GitHub Packages" --username ${{ github.actor }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text
25
+
26
+ - name : Build Release
27
+ id : build-release
28
+ run : dotnet build ${{ github.workspace }}\SiraUtil\SiraUtil.csproj -c Release
29
+
30
+ - name : Upload Release
34
31
uses : actions/upload-artifact@v4
35
32
with :
36
- name : SiraUtil
37
- path : ${{ steps.build.outputs.artifactpath }}
33
+ name : ${{ steps.build-release.outputs.artifact-name }}
34
+ path : ${{ steps.build-release .outputs.artifact-path }}
0 commit comments