🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
name: Build and Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: windows-latest
|
|
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
|