Merge pull request #91 from getyourguide/messaging #18
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: 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!" |