Skip to content

Commit 37dd0d6

Browse files
authored
Update test_and_deploy.yml
1 parent 2c61c0a commit 37dd0d6

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/test_and_deploy.yml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -66,30 +66,30 @@ jobs:
6666

6767
deploy:
6868
# This will run when you have tagged a commit starting with "v*"
69-
needs: [test]
70-
runs-on: ubuntu-latest
71-
if: contains(github.ref, 'tags')
69+
needs: [test]
70+
runs-on: ubuntu-latest
71+
if: contains(github.ref, 'tags')
72+
73+
steps:
74+
- uses: actions/checkout@v2
7275

73-
steps:
74-
- uses: actions/checkout@v2
75-
76-
- name: Set up Python
77-
uses: actions/setup-python@v2
78-
with:
79-
python-version: "3.8" # Pin a specific version of Python (adjust if needed)
80-
81-
- name: Install dependencies
82-
run: |
83-
python -m pip install --upgrade pip
84-
pip install -U setuptools setuptools_scm wheel twine build cibuildwheel
85-
86-
- name: Build and publish
87-
env:
88-
TWINE_USERNAME: __token__
89-
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
90-
run: |
91-
# Build the package with cibuildwheel for compatibility with manylinux
92-
cibuildwheel --output-dir dist
93-
94-
# Upload to PyPI using Twine
95-
twine upload dist/*
76+
- name: Set up Python
77+
uses: actions/setup-python@v2
78+
with:
79+
python-version: "3.8" # Pin a specific version of Python (adjust if needed)
80+
81+
- name: Install dependencies
82+
run: |
83+
python -m pip install --upgrade pip
84+
pip install -U setuptools setuptools_scm wheel twine build cibuildwheel
85+
86+
- name: Build and publish
87+
env:
88+
TWINE_USERNAME: __token__
89+
TWINE_PASSWORD: ${{ secrets.TWINE_API_KEY }}
90+
run: |
91+
# Build the package with cibuildwheel for compatibility with manylinux
92+
cibuildwheel --output-dir dist
93+
94+
# Upload to PyPI using Twine
95+
twine upload dist/*

0 commit comments

Comments
 (0)