name: Publish on: push: tags: - '*' jobs: publish: runs-on: ubuntu-latest environment: name: pypi url: https://pypi.org/project/tornado-openapi3/ permissions: id-token: write steps: - uses: actions/checkout@v4 - name: Install Python uses: actions/setup-python@v5 with: python-version: '3.13' - name: Install Poetry run: | curl -sSL https://install.python-poetry.org | python - -y - name: Update PATH run: echo "$HOME/.local/bin" >> $GITHUB_PATH - name: Update Poetry configuration run: poetry config virtualenvs.create false - name: Install dependencies run: poetry install --sync --no-interaction - name: Build package run: poetry build - name: Publish to PyPI uses: pypa/gh-action-pypi-publish@release/v1