Skip to content

Commit 97fa829

Browse files
committed
Use GH actions to build via new reusable workflow
also fix repo url csproj
1 parent 906306f commit 97fa829

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
build:
9+
name: Build solution
10+
uses: OxideMod/Actions/.github/workflows/project-build.yml@main
11+
with:
12+
branch-postfix: ${{ github.ref_name != 'master' && format('-{0}', github.ref_name) || '' }}
13+
version-prefix: '2.0'
14+
project-name: Oxide.Common
15+
secrets:
16+
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
17+
REPO_ACCESS_TOKEN: ${{ secrets.REPO_ACCESS_TOKEN }}
18+
NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }}

src/Oxide.Common.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<Authors>Oxide Team and Contributors</Authors>
88
<Copyright>(c) 2013-$([System.DateTime]::Now.Year) $(Authors)</Copyright>
99
<Description>Abstraction layer for the Oxide modding framework</Description>
10-
<RepositoryUrl>https://github.com/OxideMod/Oxide.Abstractions</RepositoryUrl>
10+
<RepositoryUrl>https://github.com/OxideMod/Oxide.Common</RepositoryUrl>
1111
<PackageIconUrl>icon.png</PackageIconUrl>
1212
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1313
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>
@@ -32,4 +32,4 @@
3232
</ReferencePath>
3333
</ItemGroup>
3434
</Target>
35-
</Project>
35+
</Project>

0 commit comments

Comments
 (0)