Skip to content

Fix release workflow binary path and bump action versions #2

Fix release workflow binary path and bump action versions

Fix release workflow binary path and bump action versions #2

Workflow file for this run

name: Release
on:
push:
branches: [release]
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Determine next version
id: version
run: |
latest=$(git tag --sort=-v:refname | grep -E '^v[0-9]+\.[0-9]+\.[0-9]+$' | head -n 1)
if [ -z "$latest" ]; then
next="v1.0.0"
else
IFS='.' read -r major minor patch <<< "${latest#v}"
patch=$((patch + 1))
next="v${major}.${minor}.${patch}"
fi
echo "tag=$next" >> "$GITHUB_OUTPUT"
echo "Next version: $next"
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: '10.0.x'
dotnet-quality: 'preview'
- name: Publish linux-x64 AOT binary
run: dotnet publish src/Scufpad/scufpad.csproj -c Release -r linux-x64 -o publish/
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ steps.version.outputs.tag }}
name: Scufpad ${{ steps.version.outputs.tag }}
generate_release_notes: true
files: publish/Scufpad