Skip to content

Commit

Permalink
Merge pull request #46 from analogdevicesinc/deploy-pypi-workflow
Browse files Browse the repository at this point in the history
Created workflow for pypi deploy
  • Loading branch information
SrikanthPagadarai authored Nov 13, 2024
2 parents ec4523a + d03baf9 commit ec1aaad
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/deploy-pypi.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: PyPI Deploy

on: [push, pull_request]

jobs:
PyPIDeploy:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.7
uses: actions/setup-python@v4
with:
python-version: 3.7

- name: Install dependencies
run: |
bash ./.github/scripts/install_dependencies.sh USER
bash ./.github/scripts/install_genalyzer.sh
sudo rm -rf build
pip install setuptools wheel twine build
- name: Update to dev version and build test release
run: |
cd bindings/python
python -m build
- uses: pypa/gh-action-pypi-publish@master
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags')
with:
user: __token__
password: ${{ secrets.PYPI_TOKEN }}
packages_dir: ./bindings/python/dist

0 comments on commit ec1aaad

Please sign in to comment.