Skip to content

Update release.yml

Update release.yml #2

Workflow file for this run

name: .NET Framework Release
on:
workflow_dispatch:
push:
branches: [ "main" ]
tags:
- "v*.*.*"
jobs:
build:
strategy:
matrix:
configuration: [ Release ]
runs-on: windows-latest
env:
Solution_Name: SharpSCCM.sln
Arfifact_Name: SharpSCCM.exe
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
uses: microsoft/[email protected]
- name: Build solution
run: msbuild $env:Solution_Name -t:rebuild -property:Configuration=${{ matrix.configuration }}
# Release
- name: Update release
uses: softprops/action-gh-release@v1
with:
name: Rolling Release
tag_name: rolling
prerelease: true
token: ${{ secrets.GITHUB_TOKEN }}
body: |
This is the rolling release of ${{ env.Solution_Name }} 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 }}.
files: |
$env:Artifact_Name
RELEASE_NOTES.md