Skip to content

Commit

Permalink
add pypi workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Dalton committed Jul 1, 2024
1 parent bf1d09c commit 54259e4
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish to PyPI

on:
release:
types: [published]

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install packaging setuptools twine wheel
- name: Build package
run: |
python setup.py sdist bdist_wheel
- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
1 change: 1 addition & 0 deletions abismal/VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
0.0.1
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
from setuptools import setup, find_packages

# Get version number
def getVersionNumber():
with open("abismal/VERSION", "r") as vfile:
version = vfile.read().strip()
return version

PROJECT_URLS = {
"Bug Tracker": "https://github.com/rs-station/abismal/issues",
Expand Down

0 comments on commit 54259e4

Please sign in to comment.