Forgot a , at the pyproject.toml file for the exclude statement #40
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This workflow will upload a Python Package using Twine when a release is created | |
name: Publish Python π distribution π¦ to PyPI | |
on: | |
push: | |
tags: | |
- 'v*' # Trigger the workflow on version tags like v1.0, v2.1, etc. | |
permissions: | |
contents: read | |
jobs: | |
build: | |
name: Build distribution π¦ | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - && \ | |
export PATH="$HOME/.local/bin:$PATH" | |
- name: Install dependencies | |
run: poetry install | |
- name: Update version in pyproject.toml | |
run: python scripts/update_version.py | |
- name: Convert the .ui files to .py files using pyuic6 | |
run: | | |
poetry run python scripts/convert_ui.py | |
- name: Verify files in repository | |
run: | | |
pwd | |
ls -R | |
- name: Build package | |
run: poetry build | |
- name: Store the distribution packages | |
uses: actions/upload-artifact@v4 | |
with: | |
name: python-package-distributions | |
path: dist/ | |
publish-to-pypi: | |
name: Publish Python π distribution π¦ to PyPI | |
if: startsWith(github.ref, 'refs/tags/') # Only publish when a new tag is pushed | |
needs: | |
- build | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/evaluix | |
permissions: | |
id-token: write # IMPORTANT: mandatory for trusted publishing | |
steps: | |
- name: Download all the dists | |
uses: actions/download-artifact@v4 | |
with: | |
name: python-package-distributions | |
path: dist/ | |
- name: Publish distribution π¦ to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |