Skip to content

Commit 6ff19eb

Browse files
committed
add action to publish
1 parent 885703f commit 6ff19eb

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

.github/workflows/python-publish.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on:
2+
release:
3+
types: [published]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
deploy:
10+
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v3
15+
- name: Set up Python
16+
uses: actions/setup-python@v3
17+
with:
18+
python-version: '3.x'
19+
- name: Install dependencies
20+
run: |
21+
./install.sh
22+
rm -r dist
23+
- name: Build package
24+
run: python -m build sdist
25+
- name: Publish package
26+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
27+
with:
28+
user: __token__
29+
password: ${{ secrets.PYPI_API_TOKEN }}

install.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
sudo apt update
44
sudo apt install g++ gcc swig libpfm4-dev python3-dev python3-pip
5-
cd performance_features/
65
python3 setup.py build
76
python3 setup.py install

0 commit comments

Comments
 (0)