[vpdq] Release vpdq 0.2.2 (#1654) #9
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
# Copyright (c) Meta Platforms, Inc. and affiliates. | |
name: Publish vpdq to pypi | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "vpdq/version.txt" | |
defaults: | |
run: | |
working-directory: vpdq | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install packaging dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r packaging-requirements.txt | |
- name: Install build dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y python3-dev pkg-config cmake ffmpeg libavcodec-dev libavformat-dev libavdevice-dev libavutil-dev libswscale-dev libswresample-dev libavfilter-dev | |
- name: Package | |
run: | | |
python -m build --sdist | |
- name: Ensure packaged build runs | |
run: | | |
python -m pip install dist/vpdq*.tar.gz | |
python -c "import vpdq" | |
- name: Publish distribution to Test PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.test_pypi_password }} | |
repository-url: https://test.pypi.org/legacy/ | |
packages-dir: vpdq/dist | |
- name: Publish distribution to PyPI | |
uses: pypa/gh-action-pypi-publish@release/v1 | |
with: | |
password: ${{ secrets.pypi_password }} | |
packages-dir: vpdq/dist |