From c075e2b3141df45712ac2e5a2e7970f6f32db41a Mon Sep 17 00:00:00 2001 From: gdlcf88 Date: Fri, 17 Jul 2020 01:41:30 +0800 Subject: [PATCH] Fix publish.yml --- .github/workflows/publish.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cc68f97b..d704f461 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -47,8 +47,17 @@ jobs: - name: dotnet nuget push to NuGet run: dotnet nuget push dest\*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate + - name: determine if the tag exists + - uses: mukunku/tag-exists-action@v1.0.0 + id: checkTag + with: + tag: ${{ steps.getVersion.outputs.first_match }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + - name: add git tag uses: tvdias/github-tagger@v0.0.1 + if: !${{ steps.checkTag.outputs.exists }} with: repo-token: ${{ secrets.GITHUB_TOKEN }} tag: ${{ steps.getVersion.outputs.first_match }} \ No newline at end of file