Publish ci #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | ||
-- Push vidformer-py to PyPI using Flit | ||
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 }} |