From 5f33b615549f225f1984ae0c430c5d9c27d68277 Mon Sep 17 00:00:00 2001 From: Igor Date: Thu, 11 Jul 2024 22:59:47 -0400 Subject: [PATCH] Create package.yml Added a workflow for creating a published application artifact --- .github/workflows/package.yml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/package.yml diff --git a/.github/workflows/package.yml b/.github/workflows/package.yml new file mode 100644 index 00000000..1e451fc6 --- /dev/null +++ b/.github/workflows/package.yml @@ -0,0 +1,36 @@ +name: package + +on: + workflow_dispatch: + +jobs: + build: + runs-on: windows-latest + + env: + Solution_Name: TF2HUD.Editor.sln + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '8.x' + + - name: Setup NuGet + uses: nuget/setup-nuget@v2 + env: + ACTIONS_ALLOW_UNSECURE_COMMANDS: true + + - name: Restore dependencies + run: nuget restore src/TF2HUD.Editor.sln + + - name: Build solution + run: dotnet build -c Release --no-restore + working-directory: src/TF2HUD.Editor + + - name: Publish solution + run: dotnet publish -c Release --no-restore + working-directory: src/TF2HUD.Editor \ No newline at end of file