Skip to content

Commit

Permalink
Update test_and_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MMathisLab authored Dec 23, 2024
1 parent 2c61c0a commit 37dd0d6
Showing 1 changed file with 26 additions and 26 deletions.
52 changes: 26 additions & 26 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,30 +66,30 @@ jobs:

deploy:
# This will run when you have tagged a commit starting with "v*"
needs: [test]
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
needs: [test]
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')

steps:
- uses: actions/checkout@v2

steps:
- uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8" # Pin a specific version of Python (adjust if needed)

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools setuptools_scm wheel twine build cibuildwheel
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
run: |
# Build the package with cibuildwheel for compatibility with manylinux
cibuildwheel --output-dir dist
# Upload to PyPI using Twine
twine upload dist/*
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.8" # Pin a specific version of Python (adjust if needed)

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -U setuptools setuptools_scm wheel twine build cibuildwheel
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
run: |
# Build the package with cibuildwheel for compatibility with manylinux
cibuildwheel --output-dir dist
# Upload to PyPI using Twine
twine upload dist/*

0 comments on commit 37dd0d6

Please sign in to comment.