Update packages.yml for version 3.0.1

The packages.yml workflow file has been updated to target the v3.0.1 branch instead of main. The version also has been updated from 3.0.0 to 3.0.1 in the version prediction logic. Hotfix tags usage has been removed.
This commit is contained in:
Sipke Schoorstra 2024-01-03 20:23:35 +01:00
parent 28849695d3
commit f89641df9d

View file

@ -3,9 +3,7 @@ on:
workflow_dispatch:
push:
branches:
- main
tags:
- hotfix-* # e.g. 3.0.0-hotfix-1
- v3.0.1
release:
types: [ prereleased, published ]
env:
@ -31,7 +29,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}