Skip to content

Commit

Permalink
Update pypi-publish.yml to use flit
Browse files Browse the repository at this point in the history
  • Loading branch information
hcwinsemius authored Sep 20, 2024
1 parent f4d764c commit 08dd0b5
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/pypi-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,36 @@ jobs:
runs-on: ubuntu-latest

steps:
#
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v3
uses: actions/setup-python@v5
with:
python-version: '3.10'

- name: OpenCV dependencies
run: |
sudo apt update
sudo apt install libegl1 libopengl0 -y
- name: Install dependencies
sudo apt install libegl1 libopengl0 ffmpeg -y
- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install build
pip install tomli flit twine
- name: Build package
run: python -m build
- name: Publish package
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
run: |
git clean -xdf
git restore -SW .
flit build
python -m twine check dist/*
- name: Publish package to PyPI
uses: pypa/[email protected]
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
verbose: true
skip_existing: true

0 comments on commit 08dd0b5

Please sign in to comment.