Skip to content

Merge pull request #368 from microsoft/release-please--branches--main #36

Merge pull request #368 from microsoft/release-please--branches--main

Merge pull request #368 from microsoft/release-please--branches--main #36

Workflow file for this run

name: Publish package to PyPI
on:
push:
tags:
- "v*" # Push events to matching v*, i.e. v1.0, v20.15.10
permissions:
contents: write
jobs:
build:
uses: ./.github/workflows/build.yml
publish:
name: Publish distribution to PyPI
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/v')
environment: pypi_prod
needs: [build]
env:
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_API_TOKEN }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade poetry
- name: Publish kiota_abstractions to PyPI
run: poetry publish --build
working-directory: "./packages/abstractions"
- name: Publish kiota_authentication_azure to PyPI
run: poetry publish --build
working-directory: "./packages/authentication/azure"
- name: Publish kiota_http to PyPI
run: poetry publish --build
working-directory: "./packages/http/httpx"
- name: Publish kiota_serialization_form to PyPI
run: poetry publish --build
working-directory: "./packages/serialization/form"
- name: Publish kiota_serialization_json to PyPI
run: poetry publish --build
working-directory: "./packages/serialization/json"
- name: Publish kiota_serialization_text to PyPI
run: poetry publish --build
working-directory: "./packages/serialization/text"
- name: Publish kiota_serialization_multipart to PyPI
run: poetry publish --build
working-directory: "./packages/serialization/multipart"