New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Script to download finished artifacts #25
Comments
A very similar script also at |
I think it would be useful to submit one of those a as a PR for inclusion to the repo along with a new section to the README.md to explain the use cases for this script. |
Continuing my suggestion above about twine, environment:
PYPI_USER: "FOO"
PYPI_PSWD:
# See https://www.appveyor.com/docs/build-configuration/#secure-variables
secure: <paste-your-encrypted-value>
#... regular build here
on_success:
- ps: >-
$cmtid = git rev-parse HEAD
if (git describe --exact-match $cmtid) {
twine upload -u PYPI_USER -p PYPI_PSWD dist/*
} Of course the situation becomes a bit more complex if gpg-signing is needed. |
Good idea. |
@ankostis wouldn't it be better to simply check if on_success:
- ps: >-
if ($env:APPVEYOR_REPO_TAG) {
twine upload -u PYPI_USER -p PYPI_PSWD dist/*
} |
also, I wonder if that ps snippet would be better placed under |
hmm, I noticed that if I use |
JFYI: twine can now take passwords and usernames from environment variables without the need to use it in a command (and potentially leaking it on some CI services): https://github.com/pypa/twine/blob/master/docs/changelog.rst
|
I had to use this to make it work with the new twine env variables:
Without the |
The twine-powershell snippet used to work for me, but now it started failing because it appears that twine is printing to stderr and powershell... understands that as a failure (LOL). https://ci.appveyor.com/project/anthrotype/zopfli/build/1.0.21/job/4uefbbr3xn8s6r5a#L105 Anybody knows a workaround? Like rewriting that powershell code as normal batch cmd? thanks |
ok, I made it work by calling twine via https://ci.appveyor.com/project/anthrotype/zopfli/build/job/gv6x233d02o8yuvr |
I wrote a Python program to download all the artifacts from the latest Appveyor build: https://bitbucket.org/ned/coveragepy/src/d14e44a86376ec95645584360501ab5afc70d26f/ci/download_appveyor.py?at=default
Maybe others will find it useful.
The text was updated successfully, but these errors were encountered: