Skip to content

Commit

Permalink
regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmer Bulthuis committed Nov 7, 2023
1 parent 8c82af9 commit 4651cf4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/publish-goodrouter-net.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ jobs:
- run: >
dotnet pack goodrouter-net/Goodrouter
--configuration Release
--property Version=$(echo ${GITHUB_REF_NAME} | perl -pe "s/@(.*)$/\1/")
--property AssemblyVersion=$(echo ${GITHUB_REF_NAME} | perl -pe "s/@(.*)$/\1/" | perl -pe "s/${SEMVER_REGEX}/\1.0.0.0/")
--property FileVersion=$(echo ${GITHUB_REF_NAME} | perl -pe "s/@(.*)$/\1/" | perl -pe "s/${SEMVER_REGEX}/\1.\2.\3.${GITHUB_RUN_ID}/")
--property Version=$(echo ${GITHUB_REF_NAME} | perl -pe "s/^.*?@(.*)$/\1/")
--property AssemblyVersion=$(echo ${GITHUB_REF_NAME} | perl -pe "s/^.*?@(.*)$/\1/" | perl -pe "s/${SEMVER_REGEX}/\1.0.0.0/")
--property FileVersion=$(echo ${GITHUB_REF_NAME} | perl -pe "s/^.*?@(.*)$/\1/" | perl -pe "s/${SEMVER_REGEX}/\1.\2.\3.${GITHUB_RUN_ID}/")
- run: >
dotnet nuget push
--api-key $NUGET_API_KEY
Expand Down

0 comments on commit 4651cf4

Please sign in to comment.