New version of the package #17
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: Build | |
on: | |
push: | |
tags: | |
- '4.*.*' | |
workflow_dispatch: | |
inputs: | |
logLevel: | |
description: 'Log level' | |
required: true | |
default: 'warning' | |
tags: | |
description: 'Test scenario tags' | |
jobs: | |
build-n-publish: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out code/repo into the directory | |
uses: actions/checkout@v2 | |
- name: Get the Ref | |
id: get-ref | |
uses: ankitvgupta/ref-to-tag-action@master | |
with: | |
ref: ${{ github.ref }} | |
head_ref: ${{ github.head_ref }} | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.x | |
- name: Install pypa and depencies | |
run: | | |
python3 -m pip install --upgrade pip --user | |
python3 -m pip install --upgrade build --user | |
python3 -m pip install --upgrade twine --user | |
python3 -m pip install --upgrade wheel --user | |
- name: Build a binary wheel and a source tarball | |
run: | | |
python3 setup.py sdist | |
python3 setup.py bdist_wheel | |
- name: Publish to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.PYPI_API_TOKEN }} |