Skip to content

Publish ci

Publish ci #1

Workflow file for this run

name: Publish
-- Push vidformer-py to PyPI using Flit

Check failure on line 3 in .github/workflows/publish.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/publish.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
on:
release:
types: [published]
jobs:
publish-py:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flit
- name: Build and publish
run: |
pushd vidformer-py
flit build
flit publish
popd
env:
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}