Skip to content

Commit

Permalink
ASSET-28 Fix tagged-release github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: jormal <jormal@naver.com>
  • Loading branch information
jormal committed Jun 10, 2024
1 parent df1124b commit 7d8616d
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions .github/workflows/tagged-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,9 @@ jobs:
- name: Get the latest release tag
id: get_latest_tag
run: |
LATEST_TAG=$(git describe --tags $(git rev-list --tags --max-count=1))
IFS=$'\n' read -r -d "" RELEASE_TAG LATEST_TAG <<< "$(git describe --tags $(git rev-list --tags --max-count=2))"
echo "LATEST_TAG=$LATEST_TAG" >> $GITHUB_ENV
- name: Get the current release tag
id: get_current_tag
run: echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
echo "RELEASE_TAG=$RELEASE_TAG" >> $GITHUB_ENV
- name: Set up Python 3.12
uses: actions/setup-python@v2
Expand All @@ -33,7 +30,7 @@ jobs:
- name: Set up requirements
run: |
python -m pip install --upgrade pip
pip install -r ".[essential]"
pip install -e ".[essential]"
python -m build
- name: Release the artifacts
Expand Down

0 comments on commit 7d8616d

Please sign in to comment.