Skip to content

Commit

Permalink
github: pypi publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
lnielsen committed Nov 5, 2020
1 parent 84f588c commit 9ffbbc8
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/pypi-publish.yml
@@ -0,0 +1,33 @@
name: Publish

on:
push:
tags:
- v*

jobs:
Publish
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel
- name: Build package
run: |
python setup.py compile_catalog sdist bdist_wheel
- name: Publish on PyPI
uses: pypa/gh-action-pypi-publish@v1.3.1
with:
user: __token__
password: ${{ secrets.pypi_token }}

0 comments on commit 9ffbbc8

Please sign in to comment.