Skip to content

zg-2.2

zg-2.2 #11

Workflow file for this run

name: Publish
on:
release:
types: [published]
jobs:
test:
uses: './.github/workflows/test.yml'
deploy:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.x
uses: actions/setup-python@v1
with:
python-version: '3.x'
- name: Install Python 3.x dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install setuptools wheel twine
- name: Build package
run: |
python3 setup.py sdist bdist_wheel --universal
- name: Publish package
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.pypi_password }}