Skip to content

move parent directory #3

move parent directory

move parent directory #3

Workflow file for this run

name: Release package to pypi
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
- name: Poetry Version
run: |
poetry --version
- name: Poetry Install Dependencies
run: |
cd ../
poetry install --no-interaction
- name: Build
run: |
poetry run python setup.py sdist
poetry run python setup.py bdist_wheel
- name: Publish a Python distribution to PyPI
if: startsWith(github.event.ref, 'refs/tags') || github.event_name == 'release'
uses: pypa/gh-action-pypi-publish@master
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}