From c8bc122954d08476d39c9a030c781c4992be4195 Mon Sep 17 00:00:00 2001 From: Yehor Dreval Date: Fri, 1 Dec 2023 11:35:07 +0100 Subject: [PATCH] upd zad5 --- .gitea/workflows/ci.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bf56f38..c90ae9c 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -1,12 +1,14 @@ name: First CI - on: [push] + jobs: build: runs-on: ubuntu-latest strategy: matrix: rid: ["win-x64", "linux-x64"] + outputs: + id: ${{ matrix.rid }}-output steps: - name: Checkout code uses: actions/checkout@v4 @@ -20,12 +22,17 @@ jobs: run: dotnet restore - name: Publish artifacts + id: publish run: | dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true echo "::set-output name=artifact-path::app" + upload: + needs: build + runs-on: ubuntu-latest + steps: - name: Upload artifacts uses: actions/upload-artifact@v2 with: - name: ${{ matrix.rid }}-artifacts - path: ${{ steps.publish.outputs.artifact-path }} + name: ${{ needs.build.outputs.id }} + path: ${{ needs.build.outputs[format('{0}-output', matrix.rid)] }}