Skip to content

Commit 394c9b5

Browse files
authored
Merge pull request #8 from astar-development/features/change-to-nugettest
Stop original publish and send test publish to int.nugettest.org
2 parents 74ffff2 + 090072d commit 394c9b5

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

.github/workflows/dotnet.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,10 @@ jobs:
6262
# .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}"
6363

6464
- name: Pack NuGet package
65-
if: github.ref == 'refs/heads/main'
65+
if: github.ref == 'refs/heads/main-not'
6666
run: dotnet pack .\src\${{ env.ProjectName }}\${{ env.ProjectName }}.csproj
6767

6868
- name: Push to NuGet
69-
if: github.ref == 'refs/heads/main'
69+
if: github.ref == 'refs/heads/main-not'
7070
run: dotnet nuget push "**\${{ env.ProjectName }}.*.nupkg" --api-key ${{secrets.nuget_api_key}} --skip-duplicate --source https://api.nuget.org/v3/index.json
7171

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- name: 🛠 Setup .NET
1717
uses: actions/setup-dotnet@v4
1818
with:
19-
dotnet-version: '8.x'
19+
dotnet-version: '9.x'
2020

2121
- name: 🔍 Restore dependencies
2222
run: dotnet restore
@@ -28,5 +28,5 @@ jobs:
2828
run: dotnet pack --configuration Release --no-build --output ./nupkg
2929

3030
- name: 🚀 Publish to NuGet.org
31-
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json --skip-duplicate
31+
run: dotnet nuget push ./nupkg/*.nupkg --skip-duplicate --source https://int.nugettest.org/v3.index.json # https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
3232

.idea/.idea.AStar.Dev.Functional.Extensions/.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AStar.Dev.Functional.Extensions.sln

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ EndProject
99
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "workflows", "workflows", "{2C3EC910-77D3-475C-A9EE-E8F9F9C8C43C}"
1010
ProjectSection(SolutionItems) = preProject
1111
.github\workflows\publish.yml = .github\workflows\publish.yml
12+
.github\workflows\dotnet.yml = .github\workflows\dotnet.yml
1213
EndProjectSection
1314
EndProject
1415
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AStar.Dev.ConsoleSample", "samples\AStar.Dev.ConsoleSample\AStar.Dev.ConsoleSample.csproj", "{16513013-C9A4-4707-9D79-87A2F5BBCF5C}"

0 commit comments

Comments
 (0)