chore: updates build process
This commit is contained in:
8
.github/workflows/build-and-uplod.yml
vendored
8
.github/workflows/build-and-uplod.yml
vendored
@@ -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
|
||||
Reference in New Issue
Block a user