Skip to content

Commit

Permalink
fix: working dir
Browse files Browse the repository at this point in the history
  • Loading branch information
ahanoff committed Sep 13, 2024
1 parent 9c84a9f commit 7e0329b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,18 +14,23 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '8.x'
dotnet-quality: 'ga'

- name: Restore dependencies
working-directory: src
run: dotnet restore

- name: Build
working-directory: src
run: dotnet build --configuration Release --no-restore

- name: Pack
working-directory: src
run: dotnet pack --configuration Release --no-build --output nupkgs

- name: Push to GitHub Packages
working-directory: src
run: |
for f in ./nupkgs/*.nupkg
do
Expand All @@ -41,16 +46,21 @@ jobs:
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x'
dotnet-version: '8.x'
dotnet-quality: 'ga'

- name: Restore dependencies
working-directory: src
run: dotnet restore

- name: Build
working-directory: src
run: dotnet build --configuration Release --no-restore

- name: Pack
working-directory: src
run: dotnet pack --configuration Release --no-build --output nupkgs

- name: Push to NuGet.org
working-directory: src
run: dotnet nuget push ./nupkgs/*.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_ORG_API_KEY }} --skip-duplicate

0 comments on commit 7e0329b

Please sign in to comment.