Auto-update: API change (#50) #4
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: Release the new version | |
on: | |
push: | |
tags: | |
- "v*.*.*" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
pages: | |
name: Deploy docs to Github Pages | |
environment: | |
name: github-pages | |
url: ${{ steps.pages_deploy.outputs.page_url }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install .[generators] | |
- name: Run generation script | |
run: | | |
make gen-doc | |
- name: Setup Pages | |
uses: actions/configure-pages@v5 | |
- name: Upload pages | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: 'docs/generated' | |
- name: Deploy to GitHub Pages | |
id: pages_deploy | |
uses: actions/deploy-pages@v4 | |
pypi: | |
name: Upload release to PyPI | |
runs-on: ubuntu-latest | |
environment: | |
name: pypi | |
url: https://pypi.org/p/nebius | |
permissions: | |
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install . | |
pip install twine build | |
- name: Build a binary wheel and a source tarball | |
run: python3 -m build | |
- name: Publish package to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 |