@@ -57,32 +57,32 @@ jobs:
5757 pattern : " bundles/*"
5858 github-token : ${{ secrets.GITHUB_TOKEN }}
5959
60- upload-pypi :
61- runs-on : ubuntu-latest
62- steps :
63- - uses : actions/checkout@v1
64- - name : Check For pyproject.toml
65- id : need-pypi
66- run : |
67- echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' )
68- - name : Set up Python
69- if : contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
70- uses : actions/setup-python@v2
71- with :
72- python-version : ' 3.x'
73- - name : Install dependencies
74- if : contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
75- run : |
76- python -m pip install --upgrade pip
77- pip install --upgrade build twine
78- - name : Build and publish
79- if : contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
80- env :
81- TWINE_USERNAME : ${{ secrets.pypi_username }}
82- TWINE_PASSWORD : ${{ secrets.pypi_password }}
83- run : |
84- for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
85- sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file;
86- done;
87- python -m build
88- twine upload dist/*
60+ # upload-pypi:
61+ # runs-on: ubuntu-latest
62+ # steps:
63+ # - uses: actions/checkout@v1
64+ # - name: Check For pyproject.toml
65+ # id: need-pypi
66+ # run: |
67+ # echo ::set-output name=pyproject-toml::$( find . -wholename './pyproject.toml' )
68+ # - name: Set up Python
69+ # if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
70+ # uses: actions/setup-python@v2
71+ # with:
72+ # python-version: '3.x'
73+ # - name: Install dependencies
74+ # if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
75+ # run: |
76+ # python -m pip install --upgrade pip
77+ # pip install --upgrade build twine
78+ # - name: Build and publish
79+ # if: contains(steps.need-pypi.outputs.pyproject-toml, 'pyproject.toml')
80+ # env:
81+ # TWINE_USERNAME: ${{ secrets.pypi_username }}
82+ # TWINE_PASSWORD: ${{ secrets.pypi_password }}
83+ # run: |
84+ # for file in $(find -not -path "./.*" -not -path "./docs*" \( -name "*.py" -o -name "*.toml" \) ); do
85+ # sed -i -e "s/0.0.0+auto.0/${{github.event.release.tag_name}}/" $file;
86+ # done;
87+ # python -m build
88+ # twine upload dist/*
0 commit comments