Skip to content

Commit 77b8de6

Browse files
committed
broke smth on merge
1 parent 964c939 commit 77b8de6

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/publish.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ jobs:
9696
9797
- name: dotnet publish
9898
run: dotnet publish -o "./PSQuickGraph"
99-
100-
- name: psgallery publish
101-
run: |
102-
Invoke-Pester -Path ./PsGraph.Pester.Tests/
10399

104100
- name: dotnet publish PowerShell module
105101
run: |
@@ -131,21 +127,18 @@ jobs:
131127
- name: Pack PSGraph.Common (Debug/pre-release on prerelease, Release on release)
132128
shell: bash
133129
run: |
134-
if [ "${{ github.event.release.prerelease }}" = "true" ]; then
130+
if [ -n "${{ steps.set_version.outputs.prerelease }}" ]; then
135131
VERSION="${{ steps.set_version.outputs.version }}-${{ steps.set_version.outputs.prerelease }}"
136-
dotnet pack PSGraph.Common/PSGraph.Common.csproj \
137-
--configuration Debug \
138-
--no-build \
139-
--output ./nupkg \
140-
/p:PackageVersion="$VERSION"
132+
CONFIG=Debug
141133
else
142134
VERSION="${{ steps.set_version.outputs.version }}"
143-
dotnet pack PSGraph.Common/PSGraph.Common.csproj \
144-
--configuration Release \
145-
--no-build \
146-
--output ./nupkg \
147-
/p:PackageVersion="$VERSION"
135+
CONFIG=Release
148136
fi
137+
dotnet pack PSGraph.Common/PSGraph.Common.csproj \
138+
--configuration $CONFIG \
139+
--no-build \
140+
--output ./nupkg \
141+
/p:PackageVersion="$VERSION"
149142
150143
- name: Publish PSGraph.Common to NuGet
151144
run: dotnet nuget push ./nupkg/*.nupkg --api-key ${{ secrets.NUGET_API_KEY }} --source https://api.nuget.org/v3/index.json

0 commit comments

Comments
 (0)