Manual release #7
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: "Manual release" | |
on: | |
workflow_dispatch: | |
inputs: | |
pyright_version: | |
description: "Pyright version" | |
required: true | |
type: string | |
pyright_alright_version_suffix: | |
description: "Ex: alpha1, alpha2, post1, etc..." | |
type: string | |
jobs: | |
manual_release: | |
strategy: | |
fail-fast: true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
- name: Install poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.8.3 | |
- name: Install dev dependencies | |
run: poetry install | |
- name: Bump pyright-alright version according to underlying pyright version | |
run: poetry version ${{ inputs.pyright_version }}.${{ inputs.pyright_alright_version_suffix }} | |
- name: Build pyright | |
run: poetry run python src/build_pyright.py ${{ inputs.pyright_version }} | |
- name: Build the Python wheel | |
run: poetry build --format wheel | |
- name: Publish on PyPI | |
run: | | |
poetry config pypi-token.pypi ${{ secrets.TWINE_PASSWORD }} | |
poetry publish |