Files
WorkIndicator/.gitea/workflows/main.yml
T
ckaczor 2be5b86b17
Deploy to Gitea Releases / deploy-to-gitea-releases (push) Successful in 31s
Fix a few architecture flags
2026-08-18 13:09:01 -04:00

36 lines
1.2 KiB
YAML

name: Deploy to Gitea Releases
on:
push:
branches:
- main
workflow_dispatch:
jobs:
deploy-to-gitea-releases:
runs-on: ubuntu-latest-x86-64
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-x86 -u WorkIndicator -v ${{ steps.version.outputs.version }} -p publish --packTitle "Work Indicator" --shortcuts StartMenuRoot --framework net10.0-x86-desktop
vpk [win] upload gitea --channel win-x86 --repoUrl https://gitea.kaczorzoo.net/ckaczor/WorkIndicator --publish --releaseName "${{ steps.version.outputs.version }}" --token ${{ secrets.VPK_TOKEN }}