Skip to content

ci: added tag trigger to dev #18

ci: added tag trigger to dev

ci: added tag trigger to dev #18

Workflow file for this run

name: Production Pypi
on:
push:
tags:
- "*"
jobs:
pypi:
name: Pypi
runs-on: ubuntu-latest
if: '!contains(github.ref, "-dev")'

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

View workflow run for this annotation

GitHub Actions / Production Pypi

Invalid workflow file

The workflow is not valid. .github/workflows/pypi.yml (Line: 10, Col: 9): Unexpected symbol: '"-dev"'. Located at position 23 within expression: !contains(github.ref, "-dev")
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@master
with:
python-version: 3.9
- name: Installing building dependencies
run: |
python -m pip install build twine wheel setuptools_scm setuptools
- name: Build the project
run: |
python -m build
- name: Publish a Python distribution to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
packages_dir: dist/