Skip to content

Commit

Permalink
v0.2 (and publish to PyPI)
Browse files Browse the repository at this point in the history
  • Loading branch information
JordanMilne committed Nov 13, 2023
1 parent 8e41214 commit 84d5f65
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 1 deletion.
41 changes: 41 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Publish to PyPI

on:
release:
types:
- created
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.11

- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
pip install -e .
- name: Build
run: >-
python setup.py sdist bdist_wheel
- name: Publish to Test PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.TEST_PYPI_API_TOKEN }}
repository_url: https://test.pypi.org/legacy/

- name: Publish to PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

setuptools.setup(
name="ShenanigaNFS",
version="0.1",
version="0.2",
author="Jordan Milne",
author_email="JordanMilne@users.noreply.github.com",
description="Library for making somewhat conformant NFS and SunRPC clients and servers",
Expand Down

0 comments on commit 84d5f65

Please sign in to comment.