Skip to content

Commit 54e31a3

Browse files
committed
Added more actions
1 parent 6f0eb56 commit 54e31a3

2 files changed

Lines changed: 60 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- name: Checkout repository
12+
uses: actions/checkout@v4
13+
14+
- name: Download NuGet
15+
id: download-nuget
16+
run: |
17+
sudo curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
18+
19+
- name: Build the solution
20+
run: dotnet build "PatchManager.sln" -c Release
21+
22+
- name: Find zip
23+
id: find-zip
24+
run: |
25+
echo "zip=$(ls -1 dist/PatchManager-*.zip | head -n 1)" >> $GITHUB_ENV
26+
echo "artifact_name=PatchManagerRelease" >> $GITHUB_ENV
27+
28+
- name: Upload zip artifact
29+
uses: actions/upload-artifact@v3
30+
with:
31+
name: ${{ env.artifact_name }}
32+
path: ${{ env.zip }}
33+
34+
- name: Find NuGet package
35+
id: find-nupkg
36+
run: |
37+
echo "nupkg=$(ls -1 nuget/PatchManager.*.nupkg | head -n 1)" >> $GITHUB_ENV
38+
echo "artifact_name=PatchManagerNuGet" >> $GITHUB_ENV
39+
40+
- name: Upload NuGet package
41+
uses: actions/upload-artifact@v3
42+
with:
43+
name: ${{ env.artifact_name }}
44+
path: ${{ env.nupkg }}

.github/workflows/verify.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: Verify swinfo.json
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
verify:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout Repository
13+
uses: actions/checkout@v4
14+
15+
- name: Verify KSP2 Mod
16+
uses: Rexicon226/VerifierAction@V0.5

0 commit comments

Comments
 (0)