Skip to content

Merge pull request #21 from Zero-True/pip-gha #3

Merge pull request #21 from Zero-True/pip-gha

Merge pull request #21 from Zero-True/pip-gha #3

name: Publish Package to PyPI
on:
release:
types: [created]
jobs:
build:

Check failure on line 8 in .github/workflows/publish_package.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish_package.yml

Invalid workflow file

You have an error in your yaml syntax on line 8
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Build Package
run: |
pip install build
python -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/
publish-to-pypi:
runs-on: ubuntu-latest
needs:
- build
environment:
name: pypi
url: https://pypi.org/p/zero-true
permissions:
id-token: write
steps:
- name: Download all the dists
uses: actions/download-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1