Skip to content

Commit cb85ca2

Browse files
author
Caleb Lloyd
committed
fix publish
Signed-off-by: Caleb Lloyd <caleb@codecargo.com>
1 parent 682655b commit cb85ca2

File tree

3 files changed

+12
-14
lines changed

3 files changed

+12
-14
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,22 @@ on:
55
tags:
66
- "v*.*.*"
77

8-
permissions:
9-
packages: write
10-
118
defaults:
129
run:
1310
shell: bash
1411

1512
jobs:
1613
publish:
1714
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
17+
packages: write
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@v6
2121

2222
- name: Setup .NET
23-
uses: actions/setup-dotnet@v4
23+
uses: actions/setup-dotnet@v5
2424
with:
2525
dotnet-version: 8.x.x
2626

@@ -30,12 +30,7 @@ jobs:
3030
- name: Pack SDK
3131
run: dotnet pack -p:version=${GITHUB_REF#refs/*/v} -o ./publish
3232

33-
- name: Configure NuGet source
34-
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"
35-
env:
36-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
37-
3833
- name: Publish to GitHub Packages
39-
run: dotnet nuget push ./publish/*.nupkg --skip-duplicate --source github
34+
run: dotnet nuget push ./publish/*.nupkg --skip-duplicate --source "https://nuget.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/index.json" --api-key "${NUGET_AUTH_TOKEN}"
4035
env:
4136
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ orleans.codegen.cs
9090
.ntvs_analysis.dat
9191
node_modules/
9292

93+
# JetBrains IDEs
94+
.idea/
95+
9396
# VS
9497
.vs/*
9598

src/GitHub.Octokit.SDK.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<ImplicitUsings>enable</ImplicitUsings>
66
<Nullable>enable</Nullable>
77
<PublishAot>true</PublishAot>
8-
<PackageId>BoxBuild.GitHub.Octokit.SDK</PackageId>
8+
<PackageId>CodeCargo.GitHub.Octokit.SDK</PackageId>
99
<Version>0.0.1-alpha</Version>
1010
<NuGetVersion>0.0.1-alpha</NuGetVersion>
1111
<Title>Octokit</Title>
@@ -14,8 +14,8 @@
1414
</Description>
1515
<Authors>GitHub</Authors>
1616
<PackageTags>GitHub API Octokit dotnet-core</PackageTags>
17-
<RepositoryUrl>https://github.com/boxbuild-io/github-dotnet-sdk</RepositoryUrl>
18-
<PackageProjectUrl>https://github.com/boxbuild-io/github-dotnet-sdk</PackageProjectUrl>
17+
<RepositoryUrl>https://github.com/code-cargo/github-dotnet-sdk</RepositoryUrl>
18+
<PackageProjectUrl>https://github.com/code-cargo/github-dotnet-sdk</PackageProjectUrl>
1919
<PackageIcon>octokit.png</PackageIcon>
2020
<PackageLicenseExpression>MIT</PackageLicenseExpression>
2121
<PackageReadmeFile>NugetREADME.md</PackageReadmeFile>

0 commit comments

Comments
 (0)