Skip to content

Commit a1641f5

Browse files
feature(#2): removed handling of unconfigured branches; now only master and development are considered for defining the package version. Maintained NuGet publishing command without changes.
1 parent 5a34ce7 commit a1641f5

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/publish-package-pipeline.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,8 @@ jobs:
4444
4545
if [[ "${GITHUB_REF}" == "refs/heads/master" ]]; then
4646
VERSION="${BASE_VERSION}.${GITHUB_RUN_NUMBER}"
47-
elif [[ "${GITHUB_REF}" == "refs/heads/development" ]]; then
48-
VERSION="${BASE_VERSION}-beta.${GITHUB_RUN_NUMBER}"
4947
else
50-
echo "branch not configured for publication"
51-
exit 1
48+
VERSION="${BASE_VERSION}-beta.${GITHUB_RUN_NUMBER}"
5249
fi
5350
5451
echo "use version: $VERSION"
@@ -57,4 +54,4 @@ jobs:
5754
echo "package_version=$VERSION" >> $GITHUB_OUTPUT
5855
5956
- name: push package to nuget
60-
run: dotnet nuget push ./output/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate
57+
run: dotnet nuget push ./output/*.nupkg -k ${{ secrets.NUGET_API_KEY }} -s https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)