Skip to content

Commit 2b4235a

Browse files
authored
Update publish workflow (#29)
1 parent b3ba553 commit 2b4235a

File tree

2 files changed

+4
-34
lines changed

2 files changed

+4
-34
lines changed

.github/workflows/build-test.yaml

-30
This file was deleted.

.github/workflows/main-publish.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: dotnet test ./src --no-build --verbosity normal --filter "Category!=Integration"
4343

4444
publish:
45-
name: Publish to GitHub Packages
45+
name: Publish to Packages
4646
needs: build
4747

4848
permissions:
@@ -63,16 +63,16 @@ jobs:
6363
dotnet-version: 8.0.x
6464

6565
- name: Build
66-
run: dotnet build ./src/MyPackage --configuration Release --output .
66+
run: dotnet build ./src/FluentHttpClient --configuration Release --output .
6767

6868
- name: Publish to GitHub Packages
69-
if: ${{ github.event.inputs.nugetPush == false }}
69+
if: ${{ github.event.inputs.nugetPush != 'true' }}
7070
run: |
7171
dotnet nuget push *.nupkg --source https://nuget.pkg.github.com/scottoffen/index.json --api-key ${{ secrets.GITHUB_TOKEN }}
7272
dotnet nuget push *.snupkg --source https://nuget.pkg.github.com/scottoffen/index.json --api-key ${{ secrets.GITHUB_TOKEN }}
7373
7474
- name: Publish to Nuget
75-
if: ${{ github.event.inputs.nugetPush == true }}
75+
if: ${{ github.event.inputs.nugetPush == 'true' }}
7676
run: |
7777
dotnet nuget push *.nupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}
7878
dotnet nuget push *.snupkg --source https://api.nuget.org/v3/index.json --api-key ${{ secrets.NUGET_API_KEY }}

0 commit comments

Comments
 (0)