Skip to content

Commit ad0d883

Browse files
committed
Updated release workflow to publish v3 releases
1 parent c9234af commit ad0d883

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/release.yml

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,4 @@
1-
# Credits due: by https://dusted.codes/github-actions-for-dotnet-core-nuget-packages#branch-and-pull-request-trigger
2-
31
name: Release
4-
52
on:
63
release:
74
types:
@@ -28,13 +25,15 @@ jobs:
2825
- name: Setup .NET Core
2926
uses: actions/setup-dotnet@v1
3027
with:
31-
dotnet-version: 5.0.x
28+
dotnet-version: 6.0.x
29+
include-prerelease: True
3230
- name: Create Release NuGet package
3331
run: |
3432
arrTag=(${GITHUB_REF//\// })
3533
VERSION="${arrTag[2]}"
3634
echo Version: $VERSION
3735
CONFIGURATION=$([ "${VERSION:0:2}" == "v1" ] && echo "ReleaseV1" || echo "Release")
36+
CONFIGURATION=$([ "${VERSION:0:2}" == "v2" ] && echo "ReleaseV2" || echo $CONFIGURATION)
3837
VERSION="${VERSION//v}"
3938
echo Clean Version: $VERSION
4039
echo Configuration: $CONFIGURATION
@@ -45,9 +44,9 @@ jobs:
4544
do
4645
dotnet nuget push $f --source $GITHUB_FEED --api-key ${{github.token}} --skip-duplicate --no-symbols true
4746
done
48-
- name: Push to NuGet Feed
49-
run: |
50-
for f in ./nupkg/*.nupkg
51-
do
52-
dotnet nuget push $f --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY
53-
done
47+
# - name: Push to NuGet Feed
48+
# run: |
49+
# for f in ./nupkg/*.nupkg
50+
# do
51+
# dotnet nuget push $f --source $NUGET_FEED --skip-duplicate --api-key $NUGET_KEY
52+
# done

0 commit comments

Comments
 (0)