Skip to content

Merge pull request #114 from Reelix/dependabot/nuget/System.Directory… #269

Merge pull request #114 from Reelix/dependabot/nuget/System.Directory…

Merge pull request #114 from Reelix/dependabot/nuget/System.Directory… #269

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,PublishSingleFile=true,EnableCompressionInSingleFile=true --configuration=Release
dotnet publish -r linux-x64 --self-contained true --property:PublishDir=bin/linux-x64/,assemblyname=reecon,PublishSingleFile=true,EnableCompressionInSingleFile=true --configuration=Release
dotnet publish -r linux-arm64 --self-contained true --property:PublishDir=bin/linux-arm64/,assemblyname=reecon,PublishSingleFile=true,EnableCompressionInSingleFile=true --configuration=Release
dotnet publish -r linux-musl-x64 --self-contained true --property:PublishDir=bin/linux-musl-x64/,assemblyname=reecon,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