upd zad5
Some checks failed
First CI / build (linux-x64) (push) Successful in 1m1s
First CI / build (win-x64) (push) Successful in 1m3s
First CI / upload (push) Failing after 11s

This commit is contained in:
Yehor Dreval 2023-12-01 11:35:07 +01:00
parent b19c661c23
commit c8bc122954

View File

@ -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)] }}