Skip to content

Merge pull request #91 from getyourguide/messaging #18

Merge pull request #91 from getyourguide/messaging

Merge pull request #91 from getyourguide/messaging #18

Workflow file for this run

name: Publish python poetry package
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build and publish to pypi
shell: bash
env:
PYPI_DB_ROCKET: ${{ secrets.PYPI_DB_ROCKET }}
run: |
pip install -r requirements.txt
python3 -m build --no-isolation
echo "Build successfull, uploading now..."
python3 -m twine upload dist/* -u "__token__" -p "$PYPI_DB_ROCKET" --skip-existing
echo "Upload successfull!"