Skip to content

Commit

Permalink
Adding a badge
Browse files Browse the repository at this point in the history
  • Loading branch information
allnash committed Aug 13, 2024
1 parent a9b97b0 commit 5011e39
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 19 deletions.
26 changes: 7 additions & 19 deletions .github/workflows/publish-to-pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,33 +8,21 @@ jobs:
build-n-publish:
name: Build and publish to PyPI
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
python-version: "3.x" # This will use the latest Python 3 version

- name: Install pypa/build
run: >-
python -m
pip install
build
--user
run: python -m pip install build --user

- name: Build a binary wheel and a source tarball
run: >-
python -m
build
--sdist
--wheel
--outdir dist/
.
run: python -m build --sdist --wheel --outdir dist/ .

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1.9.0
uses: pypa/gh-action-pypi-publish@v1.8.11
with:
password: ${{ secrets.PYPI_API_TOKEN }}
password: ${{ secrets.PYPI_API_TOKEN }}
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ Django Polly
:target: https://pypi.python.org/pypi/django-polly
:alt: Python Versions

.. image:: https://github.com/pollystack/django-polly/actions/workflows/tests.yml/badge.svg
:target: https://github.com/pollystack/django-polly/actions/workflows/tests.yml
:alt: Tests

.. image:: https://readthedocs.org/projects/django-polly/badge/?version=latest
:target: https://django-polly.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
Expand Down

0 comments on commit 5011e39

Please sign in to comment.