From 9a5ba5acfab650558bff1feb296863d47921de1c Mon Sep 17 00:00:00 2001 From: Girish <79399756+Girish-Anadv-07@users.noreply.github.com> Date: Thu, 26 Oct 2023 19:01:58 -0400 Subject: [PATCH] CI/CD PyPi --- .github/workflows/build.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a9d20293..0a691e19 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -37,14 +37,17 @@ jobs: cd sphinx-build make clean html - - name: Publish to Pypi - run: | - bash version_update.sh - python3 setup.py sdist bdist_wheel - twine upload dist/* -u ${{secrets.PYPI_USER}} - - name: Deploy 🚀 uses: JamesIves/github-pages-deploy-action@v4 with: folder: sphinx-build/_build/html target-folder: docs + + + - name: Publish to Pypi + run: | + git stash + git checkout version + bash version_update.sh + python3 setup.py sdist bdist_wheel + twine upload dist/* -u ${{secrets.PYPI_USER}} -p ${{secrets.PYPI_PASSWORD}}