Tag release #196
Workflow file for this run
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: Tag release | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
publish: | |
if: ${{ !contains(github.ref_name, '-') }} | |
environment: PROD_BUILD | |
runs-on: ubuntu-latest | |
name: Python 3.8 | |
steps: | |
- uses: actions/checkout@v3 | |
#TODO add a step for running unit tests | |
- name: Get the version | |
id: get_version | |
run: echo ::set-output name=VERSION::$(echo $GITHUB_REF | cut -d / -f 3) | |
- name: Build and bump version | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
architecture: x64 | |
- run: pip install -r requirements-dev.txt | |
- name: Publish to pypi | |
env: | |
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }} | |
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }} | |
run: make pip-pypi |