diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..a751c4a --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,35 @@ +name: Build AUModdedRegions + +on: + push: + branches: + - nightly + pull_request: + branches: + - nightly + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET 6 + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '6.0.x' + + - name: Restore dependencies + run: dotnet restore + + - name: Build plugin (Release) + run: dotnet build --configuration Release --no-restore + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: AUModdedRegions-Nightly + path: bin/Release/net6.0/AUModdedRegions.dll diff --git a/AUModdedRegions.csproj b/AUModdedRegions.csproj index eae7a3a..3c6b4d4 100644 --- a/AUModdedRegions.csproj +++ b/AUModdedRegions.csproj @@ -1,4 +1,4 @@ - + net6.0 @@ -7,22 +7,16 @@ 1.0.0 true latest - + + $(NoWarn);NU1603 + + - - - $(MSBuildProjectDirectory)\Libs\UnityEngine.dll - - - $(MSBuildProjectDirectory)\Libs\UnityEngine.CoreModule.dll - - - - \ No newline at end of file + diff --git a/nuget.config b/nuget.config new file mode 100644 index 0000000..a7d4e5a --- /dev/null +++ b/nuget.config @@ -0,0 +1,8 @@ + + + + + + + +