Skip to content

EOmaps v8.1

EOmaps v8.1 #89

Workflow file for this run

name: Upload to PyPI
on:
# trigger only on release
release:
types: [published]
# to trigger workflow manually from actions-tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Sets up python3
- uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Upgrade pip, install setuptools, wheel and twine
run: |
python -m pip install --upgrade pip build
python -m pip install setuptools wheel twine
- name: Build and Upload to PyPI
run: |
python -m build
python -m twine upload dist/*
env:
TWINE_USERNAME: __token__
# use the following line for deployment on pypi
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
# use the following lines for testing:
#TWINE_PASSWORD: ${{ secrets.TEST_PYPI_API_TOKEN }}
#TWINE_REPOSITORY: testpypi