Files
HardwareMonitorStatusWindow/.gitea/workflows/main.yml
Chris Kaczor fff867f482
All checks were successful
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 54s
Remove download step for first release
2026-01-27 19:10:14 -05:00

36 lines
1.3 KiB
YAML

name: Deploy to Gitea Releases
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy-to-gitea-releases:
runs-on: ubuntu-latest
container:
image: ghcr.io/catthehacker/ubuntu:dotnet-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Get next version
uses: reecetech/version-increment@2024.4.3
id: version
with:
scheme: calver
- name: Publish Application
run: dotnet publish StatusWindow/StatusWindow.csproj -r win-x64 -c Debug -o publish
- name: Create Velopack Release
run: |
export PATH="$PATH:/root/.dotnet/tools"
dotnet tool install -g vpk
#vpk [win] download gitea --channel win-x64 --repoUrl https://gitea.kaczorzoo.net/ckaczor/HardwareMonitorStatusWindow
vpk [win] pack --channel win-x64 -u HardwareMonitorStatusWindow -v ${{ steps.version.outputs.version }} -p publish --packTitle "Hardware Monitor Status Window" --shortcuts StartMenuRoot --framework net10.0-x64-desktop
vpk [win] upload gitea --channel win-x64 --repoUrl https://gitea.kaczorzoo.net/ckaczor/HardwareMonitorStatusWindow --publish --releaseName "${{ steps.version.outputs.version }}" --token ${{ secrets.VPK_TOKEN }}