Skip to content

configure the release to PyPI #1

configure the release to PyPI

configure the release to PyPI #1

Workflow file for this run

name: PyPI
on:
pull_request:
push:
branches:
- main
tags:
- 'v*'
jobs:
test:
if: {{ github.ref_name != 'main' }}

Check failure on line 13 in .github/workflows/pypi.yml

View workflow run for this annotation

GitHub Actions / PyPI

Invalid workflow file

The workflow is not valid. .github/workflows/pypi.yml (Line: 13, Col: 9): A mapping was not expected .github/workflows/pypi.yml (Line: 27, Col: 9): A mapping was not expected
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dispatch-functions
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pypa/gh-action-pypi-publish@release/v1
with:
repository-url: https://test.pypi.org/legacy/
release:
if: {{ github.ref_name == 'main' }}
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/dispatch-functions
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: pypa/gh-action-pypi-publish@release/v1