Skip to content

Commit f23062c

Browse files
committed
Fix NuGet package path in GitHub Actions workflow
1 parent e3cfc87 commit f23062c

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

.github/workflows/publish.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- 'v*'
77

8+
defaults:
9+
run:
10+
working-directory: JetDatabaseReader
11+
812
jobs:
913
publish:
1014
runs-on: windows-latest
@@ -19,16 +23,16 @@ jobs:
1923
dotnet-version: '8.0.x'
2024

2125
- name: Restore dependencies
22-
run: dotnet restore JetDatabaseReader/JetDatabaseReader.csproj
26+
run: dotnet restore JetDatabaseReader.csproj
2327

2428
- name: Build
25-
run: dotnet build JetDatabaseReader/JetDatabaseReader.csproj -c Release --no-restore
29+
run: dotnet build JetDatabaseReader.csproj -c Release --no-restore
2630

2731
- name: Create NuGet package
28-
run: dotnet pack JetDatabaseReader/JetDatabaseReader.csproj -c Release --no-build -o ./nupkg
32+
run: dotnet pack JetDatabaseReader.csproj -c Release --no-build -o ../nupkg
2933

3034
- name: List files (debug)
31-
run: dir nupkg
35+
run: dir ../nupkg
3236

3337
- name: Push to NuGet.org
34-
run: dotnet nuget push nupkg/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate
38+
run: dotnet nuget push ../nupkg/*.nupkg --api-key ${{secrets.NUGET_API_KEY}} --source https://api.nuget.org/v3/index.json --skip-duplicate

0 commit comments

Comments
 (0)