Skip to content

Publish new packages #1956

Publish new packages

Publish new packages #1956

Workflow file for this run

name: Publish new packages
on:
schedule:
- cron: "20 0,12 * * *"
workflow_dispatch:
jobs:
publish:
name: Generate and publish
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.3.2
- name: Install dependencies
run: poetry install
- name: Generate and publish new packages
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
poetry run python update_stubs.py
env:
ADMIN_TOKEN: ${{ secrets.ADMIN_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}