Skip to content

Release Linux v1.2.4-linux #4

Release Linux v1.2.4-linux

Release Linux v1.2.4-linux #4

Workflow file for this run

name: Build and Publish Velopack Linux
run-name: Release Linux v${{ inputs.version }}
on:
workflow_dispatch:
inputs:
version:
description: 'The version for the Velopack package'
required: true
default: '1.0.0'
defaults:
run:
shell: pwsh
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up .NET Core
uses: actions/setup-dotnet@v5
with:
dotnet-version: '9.x'
- name: Restore CLIENTID file
run: |
mkdir -p ${{ github.workspace }}/Resources
echo "${{ secrets.CLIENT_ID }}" > ${{ github.workspace }}/Resources/CLIENTID.txt
- name: Install Velopack CLI
run: dotnet tool install -g vpk
- name: Build and Publish
run: |
dotnet publish -c Release -r linux-x64 --self-contained true -p:PublishSingleFile=true -o ${{ github.workspace }}/publish/linux-x64
vpk pack --packId Aniki --packVersion ${{ inputs.version }} --packDir ./publish/linux-x64 --mainExe Aniki --channel linux
vpk upload github --repoUrl https://github.com/TrueTheos/Aniki --token ${{ secrets.YOUR_PAT_TOKEN }} --releaseName ${{ inputs.version }}-linux --channel linux