From 303dcc2e014e8402084d755160248ddf88ddcd35 Mon Sep 17 00:00:00 2001 From: QwertyAvatar Date: Fri, 1 Dec 2023 11:56:50 +0100 Subject: [PATCH] commit 11 --- .gitea/workflows/ci.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6e48f6f..f6a3637 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -8,9 +8,22 @@ jobs: matrix: rid: ["win-x64", "linux-x64"] steps: - - uses: actions/checkout@v4 - - uses: actions/setup-dotnet@v3 + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v3 with: dotnet-version: '6.0.x' - - run: dotnet restore - - run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true \ No newline at end of file + + - name: Restore dependencies + run: dotnet restore + + - name: Publish application + run: dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true + + - name: Upload artifacts + uses: actions/upload-artifact@v2 + with: + name: ${{ matrix.rid }}-artifacts + path: app