chore: updates build process

This commit is contained in:
2025-09-23 04:20:25 -03:00
parent 8ce407bd8b
commit cc13a7535c
2 changed files with 11 additions and 5 deletions

View File

@@ -27,19 +27,21 @@ jobs:
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
poetry self add "poetry-dynamic-versioning[plugin]"
if [ -f pyproject.toml ]; then poetry install; fi
run: poetry install
- name: Build Python Package
run: |
poetry build -f sdist
poetry install
echo "Builded DicePlayer - $(poetry version)"
- name: Configure PyPI
run: |
poetry config repositories.pypi https://upload.pypi.org/legacy/
poetry config pypi-token.pypi ${{secrets.PYPI_TOKEN}}
- name: Upload Python Package
run: |
poetry publish --repository pypi