Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Girish-Anadv-07 authored Jan 29, 2024
1 parent ab6042c commit ebcce96
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
- master
permissions:
contents: write
id-token: write
jobs:
build-and-deploy:
runs-on: macOS-latest
Expand Down Expand Up @@ -43,13 +44,17 @@ 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
git fetch --all
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 }}

0 comments on commit ebcce96

Please sign in to comment.