Skip to content

Commit

Permalink
add pypi action
Browse files Browse the repository at this point in the history
  • Loading branch information
acse-js3623 committed Apr 17, 2024
1 parent bf71f71 commit c625080
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: pypi

on:
push:
tags:
- '*'

jobs:
build-and-publish:
name: pypi
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

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

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

- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@v1.4.2
with:
password: ${{ secrets.PYPI_API_TOKEN }}

0 comments on commit c625080

Please sign in to comment.