Skip to content

Commit

Permalink
build distribution unconditionally and perform metadata validation in…
Browse files Browse the repository at this point in the history
… CI/CD workflow (#1164)
  • Loading branch information
jakob-keller committed Aug 21, 2024
1 parent b915d06 commit a4f32b1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,6 @@ jobs:
needs:
- test

# Run only on pushing a tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

steps:
- uses: actions/checkout@v4

Expand All @@ -87,6 +84,11 @@ jobs:
python -m pip install build
python -m build
- name: Check release distributions
run: |
python -m pip install twine
python -m twine check --strict dist/*
- name: Upload distributions
uses: actions/upload-artifact@v4
with:
Expand All @@ -99,6 +101,9 @@ jobs:
needs:
- release-build

# Run only on pushing a tag
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')

permissions:
# IMPORTANT: this permission is mandatory for trusted publishing
id-token: write
Expand Down

0 comments on commit a4f32b1

Please sign in to comment.