Skip to content

Refactored for maintainability, upgraded to .NET 8. #6

Refactored for maintainability, upgraded to .NET 8.

Refactored for maintainability, upgraded to .NET 8. #6

Workflow file for this run

name: .NET
on: [push]
#push:
# branches: [ master ]
#pull_request:
# branches: [ master ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore --runtime win-x64
- name: Build
run: dotnet build --no-restore --runtime win-x64 -c Release TCS.csproj
#- name: Test
# run: dotnet test --no-build --verbosity normal
- name: Publish
run: dotnet publish --no-build --runtime win-x64 -c Release -p:PublishSingleFile=true --self-contained true TCS.csproj
- name: Release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: bin/Release/net8.0/win-x64/publish/TCS.exe
#body_path: ${{ github.workflow }}-CHANGELOG.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}