Remove dev dependencies to PyGObject #5
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
--- | |
# https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | |
name: Build and Publish to PyPI | |
on: | |
push: | |
# Pattern matched against refs/tags | |
tags: | |
- '*' # Push events to every tag not containing / | |
jobs: | |
build-and-publish: | |
name: Build and Publish to PyPI | |
runs-on: ubuntu-latest | |
steps: | |
# https://github.com/marketplace/actions/checkout | |
- name: Checkout git repository | |
uses: actions/checkout@v4 | |
# https://github.com/marketplace/actions/setup-python | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.x" | |
# Build #################################################################### | |
# https://github.com/marketplace/actions/publish-python-poetry-package | |
- name: Publish to PyPI | |
# https://github.com/JRubics/poetry-publish/issues/39 | |
uses: JRubics/[email protected] | |
with: | |
# https://pypi.org/manage/account/token/ | |
# https://github.com/<owner>/<repo>/settings/secrets/actions/new | |
pypi_token: ${{ secrets.PYPI_API_TOKEN }} | |
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') |