forked from theengs/decoder
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (31 loc) · 881 Bytes
/
publish.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
name: Publish to Pypi
on:
workflow_dispatch:
release:
types: [published]
jobs:
build-n-publish:
name: Build and publish distributions to PyPI
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
fetch-depth: 0 # deep clone for setuptools-scm
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install pypa/build
run: |
python3 -m pip install --upgrade pip
pip3 install setuptools setuptools_scm cmake wheel scikit-build ninja
- name: Build a source tarball
run: |
cd python
cp -r ../src .
python3 setup.py sdist
- name: Publish distribution 📦 to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
password: ${{ secrets.PYPI_API_TOKEN }}
packages-dir: python/dist/