Skip to content

Commit

Permalink
Fix release workflow again (#60)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Jan 9, 2025
1 parent 35be716 commit 5d6a049
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
12 changes: 3 additions & 9 deletions .github/workflows/_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,9 @@ jobs:
id: check-version
shell: bash
run: |
echo pkg-name="$(hatch project metadata | jq -r .name)" >> $GITHUB_OUTPUT
echo version="$(hatch version)" >> $GITHUB_OUTPUT
set -eu
echo pkg-name="$(uvx hatch project metadata | jq -r .name)" >> $GITHUB_OUTPUT
echo version="$(uvx hatch version)" >> $GITHUB_OUTPUT
test-pypi-publish:
needs:
Expand Down Expand Up @@ -112,13 +113,6 @@ jobs:
with:
python-version: ${{ env.PYTHON_VERSION }}

- name: Check Version
id: check-version
shell: bash
run: |
echo pkg-name="$(uvx hatch project metadata | jq -r .name)" >> $GITHUB_OUTPUT
echo version="$(uvx hatch version)" >> $GITHUB_OUTPUT
- name: Import published package
shell: bash
env:
Expand Down
8 changes: 8 additions & 0 deletions .github/workflows/_test_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,14 @@ jobs:
name: test-dist
path: ${{ inputs.working-directory }}/dist/

- name: Check Version
id: check-version
shell: bash
run: |
set -eu
echo pkg-name="$(uvx hatch project metadata | jq -r .name)" >> $GITHUB_OUTPUT
echo version="$(uvx hatch version)" >> $GITHUB_OUTPUT
publish:
needs:
- build
Expand Down

0 comments on commit 5d6a049

Please sign in to comment.