Skip to content

.github/workflows/pypi-publish.yaml #4

.github/workflows/pypi-publish.yaml

.github/workflows/pypi-publish.yaml #4

Workflow file for this run

on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
pypi-publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
url: https://pypi.org/p/airflow-providers-wherobots
permissions:
id-token: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Install Poetry
uses: snok/install-poetry@v1
- name: Compare tag and project version
run: |

Check failure on line 24 in .github/workflows/pypi-publish.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/pypi-publish.yaml

Invalid workflow file

The workflow is not valid. .github/workflows/pypi-publish.yaml (Line: 24, Col: 14): Unexpected symbol: '.github.ref'. Located at position 1 within expression: .github.ref
[ "$(poetry version | cut -d' ' -f2)" != "${{ .github.ref }}" ] && echo "Version mismatch" && exit 1
- name: Poetry Build
run: |
poetry build
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1