Skip to content

Commit 1d0a9a3

Browse files
committed
ci: change release action
1 parent 3c60fb7 commit 1d0a9a3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ jobs:
8080
release_nuget:
8181
name: Publish NuGet
8282
runs-on: ubuntu-latest
83-
if: github.event.inputs.release_nuget == 'true' && github.ref == 'refs/heads/master' # && needs.build.outputs.CommitsSinceVersionSource > 0
83+
if: github.event.inputs.release_nuget == 'true' && github.ref == 'refs/heads/master' # && needs.build.outputs.IsNewVersion
8484
needs: build
8585
steps:
8686
- name: Download lib nuget package artifact
@@ -115,7 +115,7 @@ jobs:
115115
path: ./build_artifacts
116116

117117
- name: Add NuGet source
118-
run: dotnet nuget add source --username Delta3-Studio --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Delta3-Studio/index.json"
118+
run: dotnet nuget add source --username ${{ github.repository_owner }} --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/Delta3-Studio/index.json"
119119

120120
- name: Release GitHub package
121121
run: dotnet nuget push build_artifacts/*.nupkg --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"

0 commit comments

Comments
 (0)