-
-
Notifications
You must be signed in to change notification settings - Fork 188
35 lines (32 loc) · 885 Bytes
/
build.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
name: Build
on: [push]
jobs:
build:
name: Build sdist and wheels
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- run: python3 -m pip install wheel
- run: python3 setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v4
with:
path: ./dist/*.tar.gz
publish:
name: Upload release to PyPI
runs-on: ubuntu-latest
environment: release
permissions:
id-token: write
if: github.event_name == 'push' && github.ref_type == 'tag'
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- run: ls -la ./dist
# TODO: enable me
# - name: Publish package distributions to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1