Yehor Dreval 6c19d21b95 upd zad5
2023-12-01 11:25:05 +01:00

33 lines
754 B
YAML

name: First CI
on:
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 }}