| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8923e9b commit 1b36f36
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,6 +6,9 @@ on: | |||
| 6 | 6 | - 'v*' | |
| 7 | 7 | workflow_dispatch: | |
| 8 | 8 | ||
| 9 | + permissions: | ||
| 10 | + contents: read | ||
| 11 | + | ||
| 9 | 12 | jobs: | |
| 10 | 13 | build: | |
| 11 | 14 | name: Build and Test | |
@@ -73,6 +76,7 @@ jobs: | |||
| 73 | 76 | needs: build | |
| 74 | 77 | runs-on: ubuntu-latest | |
| 75 | 78 | permissions: | |
| 79 | + contents: read | ||
| 76 | 80 | id-token: write | |
| 77 | 81 | steps: | |
| 78 | 82 | - name: Download PyPI artifacts | |
@@ -104,6 +108,10 @@ jobs: | |||
| 104 | 108 | dotnet-version: '10.0.x' | |
| 105 | 109 | ||
| 106 | 110 | - name: Deploy to NuGet | |
| 111 | + env: | ||
| 112 | + NUGET_API_KEY: ${{ secrets.NUGET_API_KEY }} | ||
| 113 | + NUGET_MONTHLY: ${{ secrets.NUGET_MONTHLY }} | ||
| 107 | 114 | run: | | |
| 108 | - dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY || secrets.NUGET_MONTHLY }} --skip-duplicate nuget-dist/*.nupkg | ||
| 109 | - dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY || secrets.NUGET_MONTHLY }} --skip-duplicate nuget-dist/*.snupkg | ||
| 115 | + API_KEY="${NUGET_API_KEY:-$NUGET_MONTHLY}" | ||
| 116 | + dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key "$API_KEY" --skip-duplicate nuget-dist/*.nupkg | ||
| 117 | + dotnet nuget push --source https://api.nuget.org/v3/index.json --api-key "$API_KEY" --skip-duplicate nuget-dist/*.snupkg | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments