diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0dacee..354c199 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [main] + branches: [master] pull_request: - branches: [main] + branches: [master] jobs: build: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5ef65bd..509eb4b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -14,6 +14,10 @@ on: jobs: release: runs-on: ubuntu-latest + + permissions: + id-token: write + contents: read env: # For tag pushes: strip the 'v' prefix (v1.0.0 -> 1.0.0) @@ -58,11 +62,15 @@ jobs: --configuration Release /p:Version=${{ env.VERSION }} --output ./artifacts + + - name: Nuget Login (OIDC) + uses: NuGet/login@v1 + with: + user: OluwaVader - name: Push to NuGet.org run: > dotnet nuget push "./artifacts/*.nupkg" - --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate diff --git a/README.md b/README.md index 532da94..4f0ee8f 100644 --- a/README.md +++ b/README.md @@ -305,7 +305,7 @@ For pre-release or testing builds, trigger the workflow manually from the **Acti ### CI -Every push to `main` and every pull request runs the CI workflow which builds, packs (to verify packaging works), and uploads the `.nupkg` files as artifacts. +Every push to `master` and every pull request runs the CI workflow which builds, packs (to verify packaging works), and uploads the `.nupkg` files as artifacts. ### Local packing