Skip to content
This repository has been archived by the owner on May 14, 2024. It is now read-only.

Commit

Permalink
build: pypi-publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kdmccormick authored Feb 15, 2024
1 parent f653101 commit f73968a
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,29 @@
name: Publish package to PyPI

on:
release:
types: [published]
push:
tags:
- '*'

jobs:

push:
runs-on: ubuntu-20.04

steps:
- name: Checkout
uses: actions/checkout@v3
- name: setup python
uses: actions/setup-python@v3
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install pip
run: pip install pip

- name: Install Dependencies
run: pip install setuptools wheel
run: pip install -r requirements/pip.txt

- name: Build package
run: python setup.py sdist bdist_wheel

- name: Publish to PyPi
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
Expand Down

0 comments on commit f73968a

Please sign in to comment.