Skip to content

Commit 048a47d

Browse files
committed
2 parents 9093883 + 872b8b1 commit 048a47d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
dotnet build --configuration Release
4444
dotnet pack --configuration Release --output nupkg -p:Version='${{ steps.gitversion.outputs.SemVer }}'
4545
- name: Upload NuGet package to GitHub
46-
uses: actions/upload-artifact@v2
46+
uses: actions/upload-artifact@v4
4747
with:
4848
name: nupkg
4949
path: Sources/TelegramBot/nupkg
@@ -56,16 +56,16 @@ jobs:
5656
steps:
5757
#Push NuGet package to GitHub packages
5858
- name: Download nuget package artifact
59-
uses: actions/download-artifact@v1.0.0
59+
uses: actions/download-artifact@v4.0.0
6060
with:
6161
name: nupkg
6262
- name: Prep packages
6363
run: dotnet nuget add source --username bvdcode --password ${{ secrets.DEPLOY_GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/bvdcode/index.json"
6464
- name: Push package to GitHub packages
6565
if: needs.build.outputs.CommitsSinceVersionSource > 0 #Only release if there has been a commit/version change
6666
run: |
67-
dotnet nuget push nupkg/*.nupkg --skip-duplicate --api-key ${{ secrets.DEPLOY_GITHUB_TOKEN }} --source "github"
68-
dotnet nuget push nupkg/*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
67+
dotnet nuget push *.nupkg --skip-duplicate --api-key ${{ secrets.DEPLOY_GITHUB_TOKEN }} --source "github"
68+
dotnet nuget push *.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_KEY }} --source https://api.nuget.org/v3/index.json
6969
7070
#Create release
7171
- name: Create Release

0 commit comments

Comments
 (0)