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
36 changes: 36 additions & 0 deletions .github/workflows/BuildAndPublish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: BuildAndPack
on:
push:
branches: [main]
tags: ['*']
pull_request:

jobs:
build-and-publish:
permissions:
contents: read
id-token: write # enable GitHub OIDC token issuance for this job

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-dotnet@v4
with:
dotnet-version: 10.0.x
- name: release build
run: |
dotnet build -c Release
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
with:
user: ${{ secrets.NUGET_USER }}

- name: push to NuGet
# Only push to NuGet if we're building a tag (optional)
if: startsWith(github.ref, 'refs/tags/')
shell: bash
run: |
dotnet nuget push $_.FullName `
--api-key "${{ steps.login.outputs.NUGET_API_KEY }}" `
--source https://api.nuget.org/v3/index.json
97 changes: 0 additions & 97 deletions .github/workflows/publish-nuget-package.yml

This file was deleted.

Loading