-
Notifications
You must be signed in to change notification settings - Fork 30
47 lines (43 loc) · 1.35 KB
/
Copy pathpublish-python-packages.yml
File metadata and controls
47 lines (43 loc) · 1.35 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
#
# Copyright (c) 2026 by Delphix. All rights reserved.
#
name: Publish Python packages to Test PyPi
on:
# Run on push when a package version (declared in pyproject.toml) has
# changed on selected branches, or when this workflow itself changes.
push:
branches:
- master
- develop
- release
paths:
- '**/pyproject.toml'
- '.github/workflows/publish-python-packages.yml'
jobs:
publish:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version: [3.11]
package: [common, dvp, libs, platform, tools]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
# Install dependencies necessary for building and publishing the package.
- name: Install dependencies
run: |
pip install build twine
# Build each Python package and publish it to Test PyPi.
- name: Build and publish ${{ matrix.package }} package
working-directory: ${{ matrix.package }}
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.VSDK_PYPI_TOKEN }}
TWINE_REPOSITORY_URL: https://test.pypi.org/legacy/
run: |
python -m build
twine upload dist/*