Files
WorkIndicator/.gitea/workflows/main.yml
T
ckaczor 3c6f648e4e
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Canceled after 0s
Test actions trigger
2026-08-18 12:28:49 -04:00

38 lines
1.2 KiB
YAML

name: Deploy to Gitea Releases
on:
push:
branches:
- main
- develop
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 WorkIndicator.csproj -r win-x86 -c Release -o publish
- name: Create Velopack Release
run: |
export PATH="$PATH:/root/.dotnet/tools"
dotnet tool install -g vpk
vpk [win] download gitea --channel win-x86 --repoUrl https://gitea.kaczorzoo.net/ckaczor/WorkIndicator
vpk [win] pack --channel win-x64 -u WorkIndicator -v ${{ steps.version.outputs.version }} -p publish --packTitle "Work Indicator" --shortcuts StartMenuRoot --framework net10.0-x64-desktop
vpk [win] upload gitea --channel win-x64 --repoUrl https://gitea.kaczorzoo.net/ckaczor/WorkIndicator --publish --releaseName "${{ steps.version.outputs.version }}" --token ${{ secrets.VPK_TOKEN }}