-
Notifications
You must be signed in to change notification settings - Fork 3
31 lines (30 loc) · 948 Bytes
/
pypi.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Lets upload admix to PyPi to make it pip instalable
# Mostly based on https://github.com/marketplace/actions/pypi-publish
# copied from utilix
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
# Setup steps
- name: Setup python
uses: actions/setup-python@v2
with:
python-version: '3.8'
- name: Checkout repo
uses: actions/checkout@v2
- name: Install dependencies
run: pip install wheel
- name: Build package
run: python setup.py sdist bdist_wheel
# Do the publish
- name: Publish a Python distribution to PyPI
# Might want to add but does not work on workflow_dispatch :
# if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
uses: pypa/gh-action-pypi-publish@master
with:
#user: __token__
password: ${{ secrets.token}}