From fe3df5498b3e0d23f5a2dcf3caf4ddb8f89f609d Mon Sep 17 00:00:00 2001 From: Brett Hewitson Date: Fri, 10 Dec 2021 00:04:41 +1000 Subject: [PATCH] build pipeline stubs --- .github/workflows/asm.yml | 42 +++++++++++++++++++++++++++++++++++ .github/workflows/csm.yml | 5 +++++ .github/workflows/discord.yml | 5 +++++ src/Server-Managers.sln | 5 +++++ 4 files changed, 57 insertions(+) create mode 100644 .github/workflows/asm.yml create mode 100644 .github/workflows/csm.yml create mode 100644 .github/workflows/discord.yml diff --git a/.github/workflows/asm.yml b/.github/workflows/asm.yml new file mode 100644 index 00000000..aa9e141b --- /dev/null +++ b/.github/workflows/asm.yml @@ -0,0 +1,42 @@ +name: Build and Deploy ASM + +on: + workflow_dispatch: + + +env: + # Path to the solution file relative to the root of the project. + SOLUTION_FILE_PATH: .src/ARKServerManager/ + + # Configuration type to build. + BUILD_CONFIGURATION: Release + +jobs: + build: + runs-on: windows-latest + + steps: + - uses: actions/checkout@v2 + + - name: Add MSBuild to PATH + uses: microsoft/setup-msbuild@v1.0.2 + + - name: Restore NuGet packages + working-directory: ${{env.GITHUB_WORKSPACE}} + run: nuget restore ${{env.SOLUTION_FILE_PATH}} + + - name: Build + working-directory: ${{env.GITHUB_WORKSPACE}} + # Add additional options to the MSBuild command line here (like platform or verbosity level). + # See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference + run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} /t:publish /p:PublishDir="publish/" ${{env.SOLUTION_FILE_PATH}} + + - name: Upload artifact for deployment job + uses: actions/upload-artifact@v2 + with: + name: .net-app + path: ${{env.SOLUTION_FILE_PATH}}/publish + + #deploy: + # runs-on: self-hosted + # needs: build diff --git a/.github/workflows/csm.yml b/.github/workflows/csm.yml new file mode 100644 index 00000000..ba79cb63 --- /dev/null +++ b/.github/workflows/csm.yml @@ -0,0 +1,5 @@ +name: Build and Deploy CSM + +on: + workflow_dispatch: + diff --git a/.github/workflows/discord.yml b/.github/workflows/discord.yml new file mode 100644 index 00000000..d0770d85 --- /dev/null +++ b/.github/workflows/discord.yml @@ -0,0 +1,5 @@ +name: Build and Deploy Discord Plugin + +on: + workflow_dispatch: + diff --git a/src/Server-Managers.sln b/src/Server-Managers.sln index 8420576b..c2acb5bd 100644 --- a/src/Server-Managers.sln +++ b/src/Server-Managers.sln @@ -19,7 +19,12 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Plugins", "Plugins", "{F8DB EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{385BF0EA-D67F-44A4-910C-2E6E84A38525}" ProjectSection(SolutionItems) = preProject + ..\.github\workflows\asm.yml = ..\.github\workflows\asm.yml + ..\.github\workflows\csm.yml = ..\.github\workflows\csm.yml + ..\.github\workflows\discord.yml = ..\.github\workflows\discord.yml + ..\.github\workflows\msbuild.yml = ..\.github\workflows\msbuild.yml Nuget.config = Nuget.config + ..\.github\workflows\webapi.yml = ..\.github\workflows\webapi.yml EndProjectSection EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ServerManager.Updater", "ServerManager.Updater\ServerManager.Updater.csproj", "{3E0C9EE6-780F-4FEF-BA03-E38062A5FDB6}"