Skip to content

Commit 336aa76

Browse files
Merge pull request #72 from brainglobe/replace-upload-action
Replaced NIU upload action with separate steps
2 parents 6bd134d + 28df382 commit 336aa76

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/test_and_deploy.yml

+8-2
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,14 @@ jobs:
7878
upload_all:
7979
name: Publish build distributions
8080
needs: [build_sdist_wheels]
81+
if: github.event_name == 'push' && github.ref_type == 'tag'
8182
runs-on: ubuntu-latest
8283
steps:
83-
- uses: neuroinformatics-unit/actions/upload_pypi@v2
84+
- uses: actions/download-artifact@v4
85+
with:
86+
name: artifact
87+
path: dist
88+
- uses: pypa/[email protected]
8489
with:
85-
secret-pypi-key: ${{ secrets.TWINE_API_KEY }}
90+
user: __token__
91+
password: ${{ secrets.TWINE_API_KEY }}

0 commit comments

Comments
 (0)