Files
controlmymonitormanagement/.gitea/workflows/release.yaml

52 lines
1.3 KiB
YAML

name: Build and Release
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: windows
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.0.x'
- name: Restore dependencies
run: dotnet restore
- name: Build Release
run: dotnet build --configuration Release --no-restore
- name: Publish
run: dotnet publish DellMonitorControl/DellMonitorControl.csproj -c Release -o ./publish --self-contained false
- name: Create ZIP archive
run: Compress-Archive -Path ./publish/* -DestinationPath ./MonitorControl-${{ gitea.ref_name }}.zip
shell: pwsh
- name: Create Release
uses: https://gitea.com/actions/release-action@main
with:
token: ${{ secrets.RELEASE_TOKEN }}
tag_name: ${{ gitea.ref_name }}
title: Monitor Control ${{ gitea.ref_name }}
body: |
## Monitor Control ${{ gitea.ref_name }}
### Installation
1. Download the ZIP file
2. Extract to a folder of your choice
3. Run `DellMonitorControl.exe`
### Requirements
- Windows 10/11
- .NET 9.0 Runtime
files: |
./MonitorControl-${{ gitea.ref_name }}.zip