Skip to content

Commit

Permalink
more standardization and validation
Browse files Browse the repository at this point in the history
  • Loading branch information
emmyoop committed Feb 14, 2025
1 parent 59c71db commit b26f4bc
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
release:
name: PyPI - ${{ inputs.deploy-to }}
runs-on: ubuntu-latest
needs: release-prep
needs: [release-prep]
environment:
name: ${{ inputs.deploy-to }}
permissions:
Expand All @@ -50,13 +50,22 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4
with:
ref: ${{ github.ref }}
persist-credentials: false

- name: "Set up Python & Hatch - 3.11"
uses: ./.github/actions/setup-python-hatch
with:
python-version: "3.11"

- name: "Validate version"
run: |
HATCH_VERSION=$(hatch version)
if [[ "${{ inputs.version_number }}" != "$HATCH_VERSION" ]]; then
echo "Version number (${{ inputs.version_number }}) does not match current version ($HATCH_VERSION)"
exit 1
fi
- name: Build artifacts
run: hatch build
shell: bash
Expand Down

0 comments on commit b26f4bc

Please sign in to comment.