All checks were successful
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 52s
36 lines
1.3 KiB
YAML
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 }} |