From cb85ca26a71015e9e0fd3d855fa2cedb99cc161c Mon Sep 17 00:00:00 2001 From: Caleb Lloyd Date: Mon, 9 Mar 2026 13:05:52 -0400 Subject: [PATCH] fix publish Signed-off-by: Caleb Lloyd --- .github/workflows/publish.yml | 17 ++++++----------- .gitignore | 3 +++ src/GitHub.Octokit.SDK.csproj | 6 +++--- 3 files changed, 12 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e0dff62e..c96872e0 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -5,9 +5,6 @@ on: tags: - "v*.*.*" -permissions: - packages: write - defaults: run: shell: bash @@ -15,12 +12,15 @@ defaults: jobs: publish: runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v6 - name: Setup .NET - uses: actions/setup-dotnet@v4 + uses: actions/setup-dotnet@v5 with: dotnet-version: 8.x.x @@ -30,12 +30,7 @@ jobs: - name: Pack SDK run: dotnet pack -p:version=${GITHUB_REF#refs/*/v} -o ./publish - - name: Configure NuGet source - run: dotnet nuget add source --username ${GITHUB_REPOSITORY_OWNER} --password ${GITHUB_TOKEN} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/index.json" - env: - GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} - - name: Publish to GitHub Packages - run: dotnet nuget push ./publish/*.nupkg --skip-duplicate --source github + run: dotnet nuget push ./publish/*.nupkg --skip-duplicate --source "https://nuget.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/index.json" --api-key "${NUGET_AUTH_TOKEN}" env: NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/.gitignore b/.gitignore index 09064fed..c66e7b67 100644 --- a/.gitignore +++ b/.gitignore @@ -90,6 +90,9 @@ orleans.codegen.cs .ntvs_analysis.dat node_modules/ +# JetBrains IDEs +.idea/ + # VS .vs/* diff --git a/src/GitHub.Octokit.SDK.csproj b/src/GitHub.Octokit.SDK.csproj index c3386c53..b9eddf59 100644 --- a/src/GitHub.Octokit.SDK.csproj +++ b/src/GitHub.Octokit.SDK.csproj @@ -5,7 +5,7 @@ enable enable true - BoxBuild.GitHub.Octokit.SDK + CodeCargo.GitHub.Octokit.SDK 0.0.1-alpha 0.0.1-alpha Octokit @@ -14,8 +14,8 @@ GitHub GitHub API Octokit dotnet-core - https://github.com/boxbuild-io/github-dotnet-sdk - https://github.com/boxbuild-io/github-dotnet-sdk + https://github.com/code-cargo/github-dotnet-sdk + https://github.com/code-cargo/github-dotnet-sdk octokit.png MIT NugetREADME.md