PYPI Upload #7
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: PYPI Upload | |
on: | |
- workflow_dispatch | |
jobs: | |
pypi_upload: | |
name: pypi-upload | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
with: | |
lfs: false | |
submodules: false | |
- name: Setup Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.9 | |
- name: Setup Pip Cache | |
uses: actions/cache@v2 | |
with: | |
path: ${{ env.pythonLocation }} | |
key: pip-${{ hashFiles('.github/**/*.yaml') }} | |
- name: Setup Poetry Cache | |
uses: actions/cache@v2 | |
with: | |
path: /home/runner/.cache/pypoetry/virtualenvs | |
key: poetry-${{ hashFiles('poetry.lock') }} | |
- name: Install dependencies | |
run: | | |
pip install poetry | |
poetry install | |
- name: Build Checks | |
run: | | |
poetry run python .github/scripts/build_checks.py | |
- name: Build Package | |
run: | | |
poetry build | |
- name: Publish Package | |
run: | | |
poetry publish -u __token__ -p ${{ secrets.PYPI_API_TOKEN }} |