Skip to content

Commit

Permalink
ci: fix yaml literal miss
Browse files Browse the repository at this point in the history
  • Loading branch information
jeiea committed Aug 28, 2023
1 parent bccfab7 commit dbbf78e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ jobs:
- name: Test
run: dotnet test
- name: Publish & Create tag
run: >
run: |
version="$(nbgv get-version -v SimpleVersion)$(nbgv get-version -v PrereleaseVersion)"
[ $(git tag -l v$version) ] || ( \
dotnet pack --include-source --configuration Release -p:Version=$version \
&& dotnet nuget push ObsStrawket/bin/Release/*.symbols.nupkg \
--api-key ${{ secrets.NUGET_API_KEY }} \
--source https://api.nuget.org/v3/index.json \
&& nbgv tag \
&& git push origin v$version \
[ $(git tag -l v$version) ] || (
dotnet pack --include-source --configuration Release -p:Version=$version
&& dotnet nuget push ObsStrawket/bin/Release/*.symbols.nupkg
--api-key ${{ secrets.NUGET_API_KEY }}
--source https://api.nuget.org/v3/index.json
&& nbgv tag
&& git push origin v$version
)

0 comments on commit dbbf78e

Please sign in to comment.