Build #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
strategy: | |
matrix: | |
configuration: [Release] | |
runs-on: windows-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
# Install the .NET Core workload | |
- name: Install .NET Core | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: 7.0.x | |
# Restore the application to populate the obj folder with RuntimeIdentifiers | |
- name: Restore the application | |
run: dotnet restore | |
- name: Create Linux artifact | |
run: dotnet publish --configuration ${{ matrix.configuration }} --runtime linux-x64 --self-contained false -p:PublishReadyToRun=false Seed --output Publish/Linux -p:DebugType=None -p:DebugSymbols=false | |
- name: Create Windows artifact | |
run: dotnet publish --configuration ${{ matrix.configuration }} --runtime win-x64 --self-contained false -p:PublishReadyToRun=false Seed --output Publish/Windows -p:DebugType=None -p:DebugSymbols=false | |
- name: Make Release | |
uses: softprops/action-gh-release@v1 | |
with: | |
files: | | |
Publish/Linux/** | |
Publish/Windows/** | |
generate_release_notes: true |