Skip to content

added pypi publish workflow #1

added pypi publish workflow

added pypi publish workflow #1

Workflow file for this run

name: Publish to PyPI
on:
workflow_run:
workflows: [Create Release, Lint and Test]
types: [completed]
branches: [main]
jobs:
pypi-publish:

Check failure on line 10 in .github/workflows/pypi_publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/pypi_publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 10
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/cc-python-sdk
permissions:
id-token: write # IMPORTANT: this permission is mandatory for trusted publishing
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install build
- name: Build and package
run: |
python -m build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1