.NET Framework Release #6
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: .NET Framework Release | ||
on: | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- "v*.*.*" | ||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
env: | ||
Binary: SharpSCCM.exe | ||
Configuration: Release | ||
Solution: SharpSCCM.sln | ||
steps: | ||
# Checkout repository | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
# Setup packages | ||
- name: Setup NuGet | ||
uses: NuGet/setup-nuget@v2 | ||
- run: nuget restore $env:Solution | ||
# Build | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/setup-msbuild@v2 | ||
- name: Build solution | ||
run: msbuild $env:Solution -t:rebuild -property:Configuration=$env:Configuration | ||
# Release | ||
- name: Update release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
name: Rolling Release | ||
tag_name: rolling | ||
body: | | ||
This is the rolling release of ${{ env.Solution }} compiled from source (${{ github.sha }}). | ||
The repository updates releases automatically to keep them up-to-date with the `${{ github.ref_name }}` ${{ github.ref_type }}. | ||
Releases were last built on ${{ env.BUILD_DATE }}. | ||
fail_on_unmatched_files: true | ||
files: | | ||
Check failure on line 50 in .github/workflows/release.yml GitHub Actions / .NET Framework ReleaseInvalid workflow file
|
||
${{ env:Binary }} | ||
RELEASE_NOTES.md |