Skip to content

[vpdq] 0.1.1 (#1511) #6

[vpdq] 0.1.1 (#1511)

[vpdq] 0.1.1 (#1511) #6

Workflow file for this run

# 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