Skip to content

Commit 34b000c

Browse files
committed
Update CI setup
1 parent 383c1cb commit 34b000c

File tree

6 files changed

+85
-392
lines changed

6 files changed

+85
-392
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,35 +3,32 @@ name: Build
33
on:
44
push:
55
paths:
6-
- 'SiraUtil/**'
7-
- 'SiraUtil.sln'
8-
- '.github/workflows/build.yml'
6+
- .github/workflows/build.yml
7+
- SiraUtil/**
98

109
jobs:
1110
build:
1211
name: Build
13-
runs-on: ubuntu-22.04
12+
runs-on: windows-latest
1413
steps:
15-
- uses: actions/checkout@v4
14+
- name: Check out
15+
uses: actions/checkout@v4
16+
1617
- name: Set up Beat Saber
17-
uses: nicoco007/setup-beat-saber@v0.1
18+
uses: nicoco007/setup-beat-saber@v1
1819
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
3431
uses: actions/upload-artifact@v4
3532
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 }}

NuGet.config

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear />
5+
<add key="nicoco007 GitHub Packages" value="https://nuget.pkg.github.com/nicoco007/index.json" />
6+
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" protocolVersion="3" />
7+
</packageSources>
8+
</configuration>

SiraUtil/Directory.Build.props

Lines changed: 0 additions & 14 deletions
This file was deleted.

SiraUtil/Directory.Build.targets

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)