Bump version (1.1.1) #56
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: Tag and release new PyPi package | |
on: | |
push: | |
tags: | |
- v* | |
jobs: | |
build-and-release-pypi-package: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3 | |
uses: actions/setup-python@v3 | |
- name: Install dependencies | |
run: | | |
pip install --upgrade build | |
pip install --upgrade twine | |
- name: Build package | |
run: python3 -m build | |
- name: Release package | |
run: twine upload dist/* -u __token__ -p ${{ secrets.PYPI_TOKEN }} --verbose | |
update-docs: | |
needs: build-and-release-pypi-package | |
runs-on: ubuntu-latest | |
steps: | |
- name: Trigger docs rebuild | |
run: | | |
curl -X POST https://api.github.com/repos/cleanlab/cleanlab-studio-docs/dispatches \ | |
-H 'Accept: application/vnd.github.everest-preview+json' \ | |
-H 'Authorization: token ${{ secrets.REBUILD_DOCS_TOKEN }}' \ | |
--data '{"event_type": "rebuild_docs"}' |