Skip to content

Commit

Permalink
set up continuous deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
bendichter committed Feb 20, 2024
1 parent 58e4bc6 commit 245756e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to PyPI

on:
workflow_dispatch:

jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/brokenaxes
permissions:
id-token: write
steps:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10' # Specify the Python version you are using

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

setup(
name='brokenaxes',
version='0.5.0',
version='0.6.0',
description='Create broken axes',
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down

0 comments on commit 245756e

Please sign in to comment.