From ad49c9536b8d09eb3837040e10918eec1a8effb0 Mon Sep 17 00:00:00 2001 From: "Daniel J. Summers" Date: Sat, 23 Mar 2024 19:36:22 -0400 Subject: [PATCH] Add release packaging --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 70d4906..494a1fa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,6 @@ env: jobs: build_and_test: name: Build / Test - runs-on: ubuntu-latest strategy: @@ -51,4 +50,25 @@ jobs: run: dotnet build src/MyWebLog.sln -f net${{ matrix.dotnet-version }} - name: Test (${{ matrix.dotnet-version }}) run: cd src/MyWebLog.Tests; dotnet run -f net${{ matrix.dotnet-version }} - \ No newline at end of file + + publish: + name: Publish .zip / .bz2 Packages + runs-on: ubuntu-latest + needs: build_and_test + + steps: + - name: Check Out Code + uses: actions/checkout@v4 + - name: Setup .NET Core SDK + uses: actions/setup-dotnet@v4.0.0 + with: + dotnet-version: 8.x + - name: Create Release Packages + run: dotnet run build.fsproj + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: release-packages + path: | + release/*x64.zip + release/*.bz2