Incrementally build iter actions list (#434) #31
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release deploy | |
on: | |
push: | |
tags: | |
jobs: | |
test: | |
if: github.repository_owner == 'jd' | |
timeout-minutes: 20 | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout 🛎️ | |
uses: actions/[email protected] | |
with: | |
fetch-depth: 0 | |
- name: Setup Python 🔧 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.11 | |
- name: Build 🔧 & Deploy 🚀 | |
env: | |
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }} | |
run: | | |
pip install tox twine wheel | |
echo -e "[pypi]" >> ~/.pypirc | |
echo -e "username = __token__" >> ~/.pypirc | |
echo -e "password = $PYPI_TOKEN" >> ~/.pypirc | |
python setup.py sdist bdist_wheel | |
twine upload dist/* |