Skip to content

Update build-and-release.yml #7

Update build-and-release.yml

Update build-and-release.yml #7

# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net
env:
Solution_Name: Wind.rdr.sln
name: Build and Release
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build-and-release:
runs-on: windows-latest
steps:
- name: Build
run: dotnet publish "{{ $env.Solution_Name }}" -f net462 -c Release
- name: Release
uses: fnkr/github-action-ghr@v1
if: startsWith(github.ref, 'refs/tags/')
env:
GHR_COMPRESS: zip
GHR_PATH: .\bin\Release\Wind.rdr.dll
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}