Skip to content

Commit

Permalink
Switch to GH actions
Browse files Browse the repository at this point in the history
  • Loading branch information
simahawk committed Sep 20, 2024
1 parent 9315331 commit 816b468
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 15 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: PYPI Publish

on:
pull_request:
push:
branches:
- "master"
tags:
- "[0-9]+.[0-9]+.[0-9]+"

jobs:
deploy:
runs-on: ubuntu-latest
needs:
- pre-commit
# - tests TODO
if: startsWith(github.ref, 'refs/tags')
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- 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@master
with:
user: __token__
password: ${{ secrets.pypi_token }}
15 changes: 0 additions & 15 deletions .travis.yml

This file was deleted.

0 comments on commit 816b468

Please sign in to comment.