Skip to content

Commit 51f2d10

Browse files
Update publish_new.yml
1 parent 8a20576 commit 51f2d10

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/publish_new.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
echo "BUILD_CONFIGURATION=Release" >> $GITHUB_ENV
3131
3232
- name: Debug Configuration
33-
if: ${{ (github.event.release.prerelease || github.event_name == 'workflow_dispatch') }}
33+
if: ${{ github.event.release.prerelease }}
3434
run: |
3535
echo "BUILD_CONFIGURATION=Debug" >> $GITHUB_ENV
3636
@@ -66,22 +66,19 @@ jobs:
6666
version=$(jq -r .version version.json)
6767
echo "version=$version" >> $GITHUB_OUTPUT
6868
69-
7069
- name: Setup .NET
7170
uses: actions/setup-dotnet@v4
7271
with:
7372
dotnet-version: '9.0.x'
7473

75-
- name: Restore dependencies
76-
run: dotnet restore
74+
- name: Restore Dependencies
75+
run: dotnet restore ${{ env.SOLUTION_NAME }}
7776

7877
- name: Build
79-
run: dotnet build --no-restore --configuration Release
78+
run: dotnet build --no-restore --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.SOLUTION_NAME }}
8079

8180
- name: Test
82-
run: dotnet test --no-build --configuration Release --verbosity normal
81+
run: dotnet test --no-build --verbosity normal --configuration ${{ env.BUILD_CONFIGURATION }} ${{ env.SOLUTION_NAME }}
8382

8483
- name: Pack and Push
85-
run: dotnet pack --no-build --configuration ${{ inputs.BUILD_CONFIGURATION }} -p:PackageOutputPath=../../output -p:PackageVersion=${{ env.version_tag }} -p:PackageSource='${{ env.NUGET_SOURCE }}' -p:PushAfterPack=true -p:PackageApiKey='${{ secrets.NUGET_API_KEY }}'
86-
87-
84+
run: dotnet pack --no-build --configuration ${{ env.BUILD_CONFIGURATION }} -p:PackageOutputPath=../../output --version-suffix "${{ env.VERSION_SUFFIX }}" -p:PackageSource='${{ env.NUGET_SOURCE }}' -p:PushAfterPack=true -p:PackageApiKey='${{ secrets.NUGET_API_KEY }}'

0 commit comments

Comments
 (0)