-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[PLATFORM-1405]: Check that jwks_client package version is the same a…
…s the tag (#25) * Refactor ci, cd and Makefile * Remove build file * Check package version in cd * Fix wrong error msg in cd * Add fmt-check task * Fix clippy warning * Format...
- Loading branch information
1 parent
fb31f40
commit be9f56d
Showing
5 changed files
with
35 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,13 +12,18 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: install cargo-release | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
- name: login | ||
run: cargo login "$CARGO_AUTH_KEY" | ||
- uses: taiki-e/install-action@cargo-release | ||
- uses: taiki-e/install-action@cargo-make | ||
- name: Get version | ||
run: | | ||
VERSION=$(grep -m1 '^version' Cargo.toml | cut -d'"' -f2) | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
- name: Check version | ||
if: ${{ github.event.release.tag_name != env.VERSION }} | ||
run: | | ||
echo "Github ref tag [${{ github.event.release.tag_name }}] is different from Cargo.toml version [${{ env.VERSION }}]" | ||
exit 1 | ||
- run: cargo login "$CARGO_AUTH_KEY" | ||
env: | ||
CARGO_AUTH_KEY: ${{ secrets.CARGO_AUTH_KEY }} | ||
- name: publish | ||
run: cargo release publish --no-confirm --allow-branch "*" --all-features --execute | ||
- run: cargo make release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters