Skip to content

update release code

update release code #8

Workflow file for this run

# 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
name: .NET Release
on:
push:
tags: [ "v*.*.*" ]
jobs:
build:
permissions: write-all
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet publish --configuration Release --output ./publish
- name: Release
uses: softprops/action-gh-release@v1
with:
files: ./publish/*
token: ${{ secrets.GITHUB_TOKEN }}
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ github.ref }}