Merge pull request #106 from Reelix/dependabot/nuget/Npgsql-8.0.3 #245
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: dotnet publish | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
dotnet-version: ['8.0.100' ] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup .NET Core SDK ${{ matrix.dotnet-version }} | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: ${{ matrix.dotnet-version }} | |
- name: Install dependencies | |
run: dotnet restore | |
- name: Publish | |
run: | | |
dotnet publish -r win-x64 --self-contained true --property:PublishDir=bin/win-x64/,assemblyname=reecon,PublishTrimmed=true,PublishSingleFile=true,EnableCompressionInSingleFile=true --configuration=Release | |
dotnet publish -r linux-x64 --self-contained true --property:PublishDir=bin/linux-x64/,assemblyname=reecon,PublishTrimmed=true,PublishSingleFile=true,EnableCompressionInSingleFile=true --configuration=Release | |
dotnet publish -r linux-arm64 --self-contained true --property:PublishDir=bin/linux-arm64/,assemblyname=reecon,PublishTrimmed=true,PublishSingleFile=true,EnableCompressionInSingleFile=true --configuration=Release | |
dotnet publish -r linux-musl-x64 --self-contained true --property:PublishDir=bin/linux-musl-x64/,assemblyname=reecon,PublishTrimmed=true,PublishSingleFile=true,EnableCompressionInSingleFile=true --configuration=Release | |
mv bin/win-x64/reecon.exe bin/reecon.exe | |
mv bin/linux-x64/reecon bin/reecon-linux-x64 | |
mv bin/linux-arm64/reecon bin/reecon-linux-arm64 | |
mv bin/linux-musl-x64/reecon bin/reecon-linux-musl-x64 | |
- name: Automatic Releases | |
uses: marvinpinto/action-automatic-releases@latest | |
with: | |
repo_token: "${{ secrets.GITHUB_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: true | |
title: "Latest Development Build" | |
files: | | |
bin/reecon.exe | |
bin/reecon-linux-x64 | |
bin/reecon-linux-arm64 | |
bin/reecon-linux-musl-x64 |