Skip to content

Commit

Permalink
ci: clean README.rst before twine check
Browse files Browse the repository at this point in the history
  • Loading branch information
andreoliwa committed Dec 31, 2023
1 parent 619a2ac commit a203875
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ci-prepare-cmd.sh
Expand Up @@ -13,6 +13,9 @@ pre-commit run --all-files prettier
set -e

rm -rf dist/
# Remove certain markes from the .rst file, otherwise twine check will fail with:
# ERROR `long_description` has syntax errors in markup and would not be rendered on PyPI.
sed -i -e 's/:ref://' -e 's/:gitref://' README.rst
poetry build

# https://twine.readthedocs.io/en/latest/#twine-check
Expand Down

0 comments on commit a203875

Please sign in to comment.