-
Notifications
You must be signed in to change notification settings - Fork 29
37 lines (35 loc) · 907 Bytes
/
pypi.yml
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
name: PyPi Publish
on:
push:
tags:
- v*
jobs:
numalogic-core:
if: github.repository == 'numaproj/numalogic'
runs-on: ubuntu-latest
environment: production
defaults:
run:
working-directory: ./libs/numalogic-core
name: Build distribution
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: 'pip'
- name: Install build & twine
run: >-
pip install
build twine
--user
- name: Build wheel
run: python -m build
- name: Store the distribution packages
uses: actions/upload-artifact@v3
with:
name: python-package-distributions
path: dist/
- name: Publish
run: twine upload -r testpypi -p ${{ secrets.TEST_PYPI_PASSWORD }} dist/*