Release v5.12.1 #20
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: Releases | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
- name: Setup tox | |
run: pip install tox | |
- name: Run linter | |
run: tox -e lint | |
- name: Run tests | |
run: tox -e py | |
- name: Build package | |
run: tox -e build | |
- name: Create release | |
uses: ncipollo/release-action@v1 | |
with: | |
artifacts: dist/gspread-* | |
token: ${{ secrets.GH_TOKEN }} | |
generateReleaseNotes: True | |
artifactErrorsFailBuild: True | |
- name: Publish to TestPyPi | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.TEST_PYPI_API_TOKEN }} | |
repository-url: https://test.pypi.org/legacy/ | |
- name: Publish to PyPi | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
user: __token__ | |
password: ${{ secrets.PYPI_API_TOKEN }} |