Skip to content

Commit

Permalink
Version Upgrade (#39)
Browse files Browse the repository at this point in the history
* Test

* test

* test

* change git tag

* Test

* Test

* Fixed workflow test
  • Loading branch information
judtinzhang authored Feb 13, 2023
1 parent 904c7be commit 387fe29
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/cdkactions_build-and-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,14 @@ jobs:
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: pip install poetry
- name: Verify tag
run: |-
GIT_TAG=${GITHUB_REF}
LIBRARY_VERSION=$(poetry version -s)
echo $GIT_TAG
if [[ "$GIT_TAG" != LIBRARY_VERSION ]]; then exit 1; fi
POETRY_REF=refs/tags/$LIBRARY_VERSION
if [[ ${GITHUB_REF} != POETRY_REF ]]; then exit 1; fi
- name: Build
run: poetry build
- name: Publish
Expand Down

0 comments on commit 387fe29

Please sign in to comment.