Update GitHub Actions workflow for new release

The GitHub Actions workflow configuration has been updated to target the '3.0.1' branch instead of 'main'. Furthermore, the preview version set in the workflow has been updated to '3.0.1-preview', changing from the previous '3.0.0-preview'.
This commit is contained in:
Sipke Schoorstra 2024-01-06 10:35:37 +01:00
parent 7c632a5b55
commit 6baaa2a59f

View file

@ -3,7 +3,7 @@ on:
workflow_dispatch:
push:
branches:
- main
- 3.0.1
tags:
- hotfix-* # e.g. 3.0.0-hotfix-1
release:
@ -31,7 +31,7 @@ jobs:
TAG_NAME=${TAG_NAME#refs/tags/} # remove the refs/tags/ prefix
echo "VERSION=${TAG_NAME}" >> $GITHUB_ENV
else
echo "VERSION=3.0.0-preview.${{github.run_number}}" >> $GITHUB_ENV
echo "VERSION=3.0.1-preview.${{github.run_number}}" >> $GITHUB_ENV
fi
- name: Build
run: dotnet build --configuration Release /p:Version=${VERSION}