|
|
|
@ -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 }} |