mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Added action to publish to PyPI
This commit is contained in:
parent
8958eb1b54
commit
1a689d3a1c
26
.github/workflows/pypi.yml
vendored
Normal file
26
.github/workflows/pypi.yml
vendored
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
name: Publish Package to PyPI
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*.*.*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
publish_to_pypi:
|
||||||
|
name: Publish a new version to PyPI
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Check out the repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
|
run: pip install wheel setuptools
|
||||||
|
|
||||||
|
- name: Build package
|
||||||
|
run: python setup.py sdist bdist_wheel
|
||||||
|
|
||||||
|
- name: Publish to PyPI
|
||||||
|
uses: pypa/gh-action-pypi-publish@release/v1
|
||||||
|
with:
|
||||||
|
user: __token__
|
||||||
|
password: ${{ secrets.PYPI_API_TOKEN }}
|
Loading…
Reference in New Issue
Block a user