Add Gitea Actions workflows and remove old Dell logo
- Add build.yaml for CI on push/PR - Add release.yaml for automated releases on version tags - Remove unused DellLogo.ico To create a release, push a tag: git tag v1.0.0 && git push --tags 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
29
.gitea/workflows/build.yaml
Normal file
29
.gitea/workflows/build.yaml
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
branches:
|
||||||
|
- master
|
||||||
|
- main
|
||||||
|
|
||||||
|
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
|
||||||
|
run: dotnet build --configuration Release --no-restore
|
||||||
51
.gitea/workflows/release.yaml
Normal file
51
.gitea/workflows/release.yaml
Normal file
@@ -0,0 +1,51 @@
|
|||||||
|
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: actions/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
token: ${{ secrets.GITEA_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
|
||||||
Binary file not shown.
|
Before Width: | Height: | Size: 430 KiB |
@@ -26,12 +26,10 @@
|
|||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<None Remove="DellLogo.ico" />
|
|
||||||
<None Remove="MonitorIcon.ico" />
|
<None Remove="MonitorIcon.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Resource Include="DellLogo.ico" />
|
|
||||||
<Resource Include="MonitorIcon.ico" />
|
<Resource Include="MonitorIcon.ico" />
|
||||||
</ItemGroup>
|
</ItemGroup>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user