Skip to content

Commit

Permalink
Add pypi deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
olivi-r committed Dec 29, 2023
1 parent 2ba0bad commit f13a1a6
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions appveyor.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
environment:
BUILD_SCRIPT: python -m cibuildwheel --output-dir dist
PYPI_TOKEN:
secure: Ej5+0zxoEbzldGFB9gEbEOI81xpoxi+qk2FG5O2JKnw+9seQfRf9iudWM/98pLE2/vi/KkvrGOidtbz3cS3w/ZmtfZiQf/Tp5sG8YlL21oDdRMMW/EZIc049XvAOTsnb2fAziS19I/UNPFpu/Dzo1Xo/KNax5WuX66zWZFJ2P0oFw0Wv36D9aHpfm4IYEHGewVGZMpvXk993HOOZdeZt0uG02zU85EG08EGP092zDp6SL3WsyVZ7YtJn3Lk3W+7c6BKoKG8sKYn61MLi9J9kEQ==
matrix:
- APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu
BUILD_SCRIPT: python -m build --sdist
Expand All @@ -20,11 +22,20 @@ artifacts:
- path: "dist\\*"

deploy:
description: ""
provider: GitHub
auth_token:
secure: atWS2pKyihyRyTzMopS3FzlG+VT/r3fx5pk+7E2BwvyxdAGiSmH/pDXPBIPArdW0
artifact: /.*\.(whl|tar\.gz)/
draft: true
on:
branch: main
- provider: GitHub
description: ""
auth_token:
secure: atWS2pKyihyRyTzMopS3FzlG+VT/r3fx5pk+7E2BwvyxdAGiSmH/pDXPBIPArdW0
artifact: /.*\.(whl|tar\.gz)/
draft: true
on:
branch: main
APPVEYOR_REPO_TAG: true

deploy_script:
- ps: |
if ($env:APPVEYOR_REPO_TAG -eq 'true')
{
python -m pip install twine
python -m twine upload -u __token__ -p ${env:PYPI_TOKEN} --skip-existing dist/*
}

0 comments on commit f13a1a6

Please sign in to comment.