chore(deps-dev): bump setuptools from 68.2.2 to 70.0.0 (#39) #17
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: Bump version | |
on: | |
push: | |
branches: [master] | |
env: | |
GIT_USER_EMAIL: [email protected] | |
GIT_USER_NAME: fondeadora-tech | |
jobs: | |
bump: | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
token: '${{ secrets.ACCESS_TOKEN }}' | |
fetch-depth: 0 | |
- name: Set up Python 3.7 | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Install dependencies | |
run: | | |
python -m pip install -U commitizen | |
- name: Create Bump | |
run: | | |
git config --local user.email "$GIT_USER_EMAIL" | |
git config --local user.name "$GIT_USER_NAME" | |
cz bump --changelog --yes | |
- name: Push changes | |
uses: Woile/github-push-action@master | |
with: | |
github_token: ${{ secrets.ACCESS_TOKEN }} | |
tags: "true" | |
release: | |
needs: | |
- bump | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python 3.8 | |
uses: actions/[email protected] | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: python -m pip install -qU setuptools wheel twine | |
- name: Generating distribution archives | |
run: python setup.py sdist bdist_wheel | |
- name: Publish a Python distribution to PyPI | |
if: "!contains(github.event.head_commit.message, '[skip ci]')" | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |