Yehor Dreval b19c661c23
Some checks failed
First CI / build (linux-x64) (push) Failing after 1m3s
First CI / build (win-x64) (push) Failing after 1m3s
upd zad5
2023-12-01 11:28:04 +01:00

32 lines
760 B
YAML

name: First CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
rid: ["win-x64", "linux-x64"]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: "6.0.x"
- name: Restore dependencies
run: dotnet restore
- name: Publish artifacts
run: |
dotnet publish -o app -r ${{ matrix.rid }} --sc /p:PublishSingleFile=true
echo "::set-output name=artifact-path::app"
- name: Upload artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.rid }}-artifacts
path: ${{ steps.publish.outputs.artifact-path }}