@@ -46,15 +46,14 @@ jobs:
4646 run : |
4747 python -m pip install --upgrade pip
4848 if [ -f requirements_build.txt ]; then python -m pip install -r requirements_build.txt; fi
49- exit 1
50- # - name: Build Package
51- # run: |
52- # python -m build
53- # - name: Publish Distribution to TestPyPI
54- # uses: pypa/gh-action-pypi-publish@v1.9.0
55- # with:
56- # password: ${{ secrets.TEST_PYPI_API_TOKEN }}
57- # repository_url: https://test.pypi.org/legacy/
49+ - name : Build Package
50+ run : |
51+ python -m build
52+ - name : Publish Distribution to TestPyPI
53+ uses : pypa/gh-action-pypi-publish@v1.9.0
54+ with :
55+ password : ${{ secrets.TEST_PYPI_API_TOKEN }}
56+ repository_url : https://test.pypi.org/legacy/
5857 - name : Handling Failure Delete tag
5958 if : failure()
6059 env :
8483 # Write the reverted version number back to setup file and
8584 sed -i "s/\(version=\"[0-9]\+\.[0-9]\+\.\)[0-9]\+\"/\1$my_var\"/" setup.py
8685 sed -i "s/\(current_version = [0-9]\+\.[0-9]\+\.\)[0-9]\+/\1$my_var/" .bumpversion.cfg
87- git add . && git commit -m "decremented version" && git push
86+ git add . && git commit -m "Failed Publish Job --- decremented version" && git push
8887 git config --global --unset url."https://${{ env.login }}:${{ env.token }}@github.com/".insteadOf
8988
9089
@@ -154,7 +153,7 @@ jobs:
154153 sed -i "s/\(version=\"[0-9]\+\.[0-9]\+\.\)[0-9]\+\"/\1$my_var\"/" setup.py
155154 sed -i "s/\(current_version = [0-9]\+\.[0-9]\+\.\)[0-9]\+/\1$my_var/" .bumpversion.cfg
156155
157- git add . && git commit -m "decremented version" && git push
156+ git add . && git commit -m "Failed Hardware Test Job ---- decremented version" && git push
158157 git config --global --unset url."https://${{ env.login }}:${{ env.token }}@github.com/".insteadOf
159158
160159 Bump_version_on_dev :
0 commit comments