v1.4.0 #11
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: Python Publish | |
on: | |
release: | |
types: [created] | |
permissions: | |
contents: read | |
pull-requests: read # to detect changes files | |
jobs: | |
pypi: | |
name: Pypi | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: descope/.github/.github/actions/python/poetry/setup@main | |
with: | |
python-version: "3.8" | |
- name: Autobump version | |
run: | | |
poetry version $(git describe --tags --abbrev=0) | |
- name: Build | |
uses: descope/.github/.github/actions/python/poetry/build@main | |
- name: Publish | |
uses: descope/.github/.github/actions/python/poetry/publish@main | |
with: | |
token: ${{ secrets.PYPI_TOKEN }} |