Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

on:
push:
branches: [main]
branches: [master]
pull_request:
branches: [main]
branches: [master]

jobs:
build:
Expand Down
10 changes: 9 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down