Skip to content

Commit 413569e

Browse files
Update build-test-deploy.yml
1 parent 9224c1f commit 413569e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build-test-deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,17 @@ jobs:
4242
- name: Test
4343
run: dotnet test --no-build --configuration Release --verbosity normal
4444
- name: Pack
45-
if: ("${{ github.ref }}".startsWith("refs/tags/v"))
45+
if: startsWith(github.ref, 'refs/tags/v')
4646
run: dotnet pack -p:PackageVersion=${{ env.nugetVersion }} --configuration Release -o ${{env.DOTNET_ROOT}}/TestTools.ConsolePack --no-build
4747
- name: Upload Artifacts
48-
if: ("${{ github.ref }}".startsWith("refs/tags/v"))
48+
if: startsWith(github.ref, 'refs/tags/v')
4949
uses: actions/upload-artifact@v2
5050
with:
5151
name: NuGet
5252
path: ${{env.DOTNET_ROOT}}/TestTools.ConsolePack
5353

5454
deploy:
55-
if: ("${{ github.ref }}".startsWith("refs/tags/v"))
55+
if: startsWith(github.ref, 'refs/tags/v')
5656
runs-on: ubuntu-latest
5757
needs: build-and-test
5858
environment:
@@ -65,4 +65,4 @@ jobs:
6565
- name: Push NuGet
6666
run: |
6767
$tagVersion = "${{ github.ref }}".substring(11)
68-
dotnet nuget push ${{ github.workspace }}/TestTools.ConsolePack/IntelliTect.TestTools.Console.$tagVersion.nupkg --source https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
68+
dotnet nuget push ${{ github.workspace }}/TestTools.ConsolePack/IntelliTect.TestTools.Console.$tagVersion-ci2.nupkg --source https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate

0 commit comments

Comments
 (0)