Skip to content

Commit

Permalink
publish actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Elmer Bulthuis committed Nov 7, 2023
1 parent 08d34f2 commit cea61f2
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-net.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- net@v*
- goodrouter-net@v*

defaults:
run:
Expand All @@ -27,9 +27,9 @@ jobs:
- run: >
dotnet pack Goodrouter
--configuration Release
--property Version=$(echo ${GITHUB_REF_NAME} | perl -pe "s/^v(.*)$/\1/")
--property AssemblyVersion=$(echo ${GITHUB_REF_NAME} | perl -pe "s/^v(.*)$/\1/" | perl -pe "s/${SEMVER_REGEX}/\1.0.0.0/")
--property FileVersion=$(echo ${GITHUB_REF_NAME} | perl -pe "s/^v(.*)$/\1/" | perl -pe "s/${SEMVER_REGEX}/\1.\2.\3.${GITHUB_RUN_ID}/")
--property Version=$(echo ${GITHUB_REF_NAME:16}
--property AssemblyVersion=$(echo ${GITHUB_REF_NAME:16} | perl -pe "s/${SEMVER_REGEX}/\1.0.0.0/")
--property FileVersion=$(echo ${GITHUB_REF_NAME:16} | perl -pe "s/${SEMVER_REGEX}/\1.\2.\3.${GITHUB_RUN_ID}/")
- run: >
dotnet nuget push
--api-key $NUGET_API_KEY
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish-rs.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- rs@v*
- goodrouter-rs@v*

defaults:
run:
Expand All @@ -18,5 +18,5 @@ jobs:
steps:
- uses: actions/checkout@v3
- run: apk add cargo-edit
- run: cargo set-version ${GITHUB_REF_NAME:1}
- run: cargo set-version ${GITHUB_REF_NAME:15}
- run: cargo publish --allow-dirty
4 changes: 2 additions & 2 deletions .github/workflows/publish-ts.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- ts@v*
- goodrouter-ts@v*

defaults:
run:
Expand All @@ -18,7 +18,7 @@ jobs:
- uses: actions/checkout@v3
- run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' >> .npmrc
- run: npm ci
- run: npm version $GITHUB_REF_NAME
- run: npm version ${GITHUB_REF_NAME:15}
- run: npm publish

publish-cloudflare:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish-www.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
on:
push:
tags:
- www@v*
- goodrouter-www@v*

defaults:
run:
Expand Down
2 changes: 2 additions & 0 deletions cspell.config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ words:
- itertools
- lcov
- microtime
- npmjs
- nupkg
- rustup
ignoreWords: []
import: []

0 comments on commit cea61f2

Please sign in to comment.