Skip to content

Commit 4a1e2af

Browse files
committed
Use GH actions to build via new reusable workflow
fix csproj
1 parent 75acead commit 4a1e2af

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

.github/workflows/build.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
workflow_dispatch:
6+
7+
jobs:
8+
prod-build:
9+
name: Production build solution
10+
if: ${{ github.ref_name == 'master' }}
11+
uses: OxideMod/Actions/.github/workflows/project-build.yml@main
12+
with:
13+
version-prefix: '2.0'
14+
project-name: Oxide.Core
15+
secrets: inherit
16+
17+
dev-build:
18+
name: Development build solution
19+
if: ${{ github.ref_name != 'master' }}
20+
uses: OxideMod/Actions/.github/workflows/project-build.yml@main
21+
with:
22+
branch-postfix: "-${{ github.ref_name }}"
23+
version-prefix: '2.0'
24+
project-name: Oxide.Core
25+
secrets: inherit

src/Oxide.Core.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<Authors>Oxide Team and Contributors</Authors>
99
<Copyright>(c) 2013-$([System.DateTime]::Now.Year) $(Authors)</Copyright>
1010
<Description>Core component for the Oxide modding framework</Description>
11-
<RepositoryUrl>https://github.com/OxideMod/Oxide.CSharp</RepositoryUrl>
11+
<RepositoryUrl>https://github.com/OxideMod/Oxide.Core</RepositoryUrl>
1212
<PackageIconUrl>icon.png</PackageIconUrl>
1313
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1414
<PackageProjectUrl>$(RepositoryUrl)</PackageProjectUrl>

0 commit comments

Comments
 (0)