diff --git a/.github/workflows/publish-artifacts-examples-tests.yml b/.github/workflows/publish-artifacts-examples-tests.yml index d9c76a9a2..750f07bc2 100644 --- a/.github/workflows/publish-artifacts-examples-tests.yml +++ b/.github/workflows/publish-artifacts-examples-tests.yml @@ -108,7 +108,7 @@ jobs: run: dotnet test ./examples/ --no-restore --configuration Release --verbosity normal publish-packages: - if: github.event_name == 'push' && github.ref == 'refs/heads/develop' + if: (github.event_name == 'push' && github.ref == 'refs/heads/develop') || ${{ github.event_name == 'workflow_dispatch' }} needs: run-tests runs-on: ubuntu-latest permissions: @@ -130,13 +130,10 @@ jobs: - name: Setup GitHub Packages source run: | dotnet nuget add source https://nuget.pkg.github.com/${{ github.repository_owner }}/index.json \ - --name github \ - --username ${{ github.actor }} \ - --password ${{ secrets.GITHUB_TOKEN }} - --store-password-in-clear-text + --name github - name: Publish packages to GitHub Packages run: | for package in ./packages/*.nupkg; do dotnet nuget push $package --source github --api-key ${{ secrets.GITHUB_TOKEN }} - done \ No newline at end of file + done