Skip to content

Merge pull request #28 from BrunoSilvaAndrade/release/3.1.2 #16

Merge pull request #28 from BrunoSilvaAndrade/release/3.1.2

Merge pull request #28 from BrunoSilvaAndrade/release/3.1.2 #16

Workflow file for this run

name: Bump version
on:
push:
branches:
- master
jobs:
versioning:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/github-tag-action@v6.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.tag_version.outputs.new_tag }}
name: Release ${{ steps.tag_version.outputs.new_tag }}
body: ${{ steps.tag_version.outputs.changelog }}
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
pip install -r requirements.txt
- name: Build package
env:
RELEASE_VERSION: ${{ steps.tag_version.outputs.new_tag }}
run: python -m build -w -s
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}