forked from EIDOSLAB/torchstain
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (32 loc) · 910 Bytes
/
build.yaml
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
name: Build and upload to PyPI
on:
push
jobs:
build_wheels:
name: Build release
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install deps
run: pip install setuptools wheel
- name: Build wheels
run: python setup.py sdist bdist_wheel
- uses: actions/upload-artifact@v4
with:
path: ./dist/*
upload_pypi:
needs: build_wheels
runs-on: ubuntu-20.04
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4
with:
name: artifact
path: dist
- uses: pypa/gh-action-pypi-publish@release/v1.12
with:
user: __token__
password: ${{ secrets.torchstain_deploy_token }}