-
Notifications
You must be signed in to change notification settings - Fork 353
56 lines (47 loc) · 1.52 KB
/
vpdq-release.yaml
File metadata and controls
56 lines (47 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# 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.11"
- 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: Install packaging dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r packaging-requirements.txt
python -m pip list
- name: Package
run: |
python -m build --sdist
- name: Ensure packaged build runs
run: |
python -m pip install dist/vpdq*.tar.gz
python -m pip list
python -c "import vpdq; print(dir(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