From ebcce96ab33c367ae503425c5984e7c11868e16f Mon Sep 17 00:00:00 2001 From: Girish <79399756+Girish-Anadv-07@users.noreply.github.com> Date: Mon, 29 Jan 2024 03:49:40 -0500 Subject: [PATCH] Update build.yml --- .github/workflows/build.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 633689f6..b1a4d156 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,7 @@ on: - master permissions: contents: write + id-token: write jobs: build-and-deploy: runs-on: macOS-latest @@ -43,8 +44,7 @@ jobs: folder: sphinx-build/_build/html target-folder: docs - - - name: Publish to Pypi + - name: Build Pypi Files run: | rm -rf build dist gunfolds.egg-info git stash @@ -52,4 +52,9 @@ jobs: git checkout version bash version_update.sh python3 setup.py sdist bdist_wheel - twine upload dist/* -u ${{secrets.PYPI_USER}} -p ${{secrets.PYPI_PASSWORD}} + + + - name: Publish to Pypi + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.PYPI_PASSWORD }}