Browse Source

Fix publish.yml

pull/87/head
gdlcf88 6 years ago
parent
commit
c075e2b314
  1. 9
      .github/workflows/publish.yml

9
.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 }}
Loading…
Cancel
Save