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
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Publish NuGet Package
name: Publish NuGet Packages

on:
release:
Expand All @@ -11,7 +11,8 @@ env:
jobs:
publish:
permissions:
id-token: write # enable GitHub OIDC token issuance for this job
contents: read
id-token: write
runs-on: ubuntu-latest
steps:
- name: Checkout code
Expand All @@ -23,12 +24,11 @@ jobs:
shell: bash
run: bash scripts/pack.sh --configuration Release --runtime linux-x64 --output "${{ env.NuGetDirectory }}"

# Get a short-lived NuGet API key
- name: NuGet login (OIDC → temp API key)
uses: NuGet/login@v1
id: login
with:
user: ${{ vars.NUGET_USER }}
user: ling921

- name: Publish to NuGet
run: |
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,15 @@ on:
pull_request:
branches:
- master
push:
branches:
- master

concurrency:
group: tests-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
permissions:
contents: read
runs-on: ubuntu-latest

steps:
Expand Down
Loading