Skip to content

Workflow file for this run

name: Build and Publish
on:
push:
branches: [ "task40" ] # This should be the branch you merge into
jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: '0'
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.8'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install bumpversion build twine
- name: Bump patch version
run: bumpversion patch
- name: Build Package
run: |
./build.sh
- name: Publish Package
env:
PYPI_API_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
run: |
twine upload dist/* --verbose --non-interactive --repository testpypi --username __token__ --password $PYPI_API_TOKEN