Skip to content

chore: add release workflow #1

chore: add release workflow

chore: add release workflow #1

Workflow file for this run

name: Publish package to PyPi
on:
release:
types: [published]
jobs:
push:

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

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 9
runs-on: ubuntu-latest
if: !startsWith(github.head_ref, 'harmony-chart')
defaults:
run:
working-directory: ./tutor-contrib-harmony-plugin
steps:
- name: Checkout
uses: actions/checkout@v2
- name: setup python
uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install Dependencies
run: pip install setuptools wheel
- name: Build package
run: python setup.py sdist bdist_wheel
- name: Publish to PyPi
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.PYPI_UPLOAD_TOKEN }}