File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,32 +3,27 @@ name: Publish PyTorchLayerViz to PyPI
33on :
44 push :
55 tags :
6- - ' *'
6+ - ' *'
77
88jobs :
99 build-n-publish :
1010 name : Build and publish PyTorchLayerViz to PyPI
1111 runs-on : ubuntu-18.04
1212 steps :
13- - uses : actions/checkout@master
13+ - uses : actions/checkout@v2
14+ with :
15+ ref : main
1416 - name : Set up Python 3.12
1517 uses : actions/setup-python@v3
1618 with :
1719 python-version : ' 3.12'
18- - name : Install pypa/setuptools
19- run : >-
20- python -m
21- pip install wheel
22- - name : Extract tag name
23- id : tag
24- run : echo ::set-output name=TAG_NAME::$(echo $GITHUB_REF | cut -d / -f 3)
25- - name : Update version in setup.py
26- run : >-
27- sed -i "s/{{VERSION_PLACEHOLDER}}/${{ steps.tag.outputs.TAG_NAME }}/g" setup.py
20+ - name : Install build tools
21+ run : >
22+ python -m pip install wheel
2823 - name : Build a binary wheel
29- run : >-
24+ run : >
3025 python setup.py sdist bdist_wheel
3126 - name : Publish PyTorchLayerViz to PyPI
32- uses : pypa/gh-action-pypi-publish@master
27+ uses : pypa/gh-action-pypi-publish@v1.5.0
3328 with :
34- password : ${{ secrets.PYPI_API_TOKEN }}
29+ password : ${{ secrets.PYPI_API_TOKEN }}
You can’t perform that action at this time.
0 commit comments