Skip to content
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

Release binaries #324

Merged
merged 9 commits into from
Sep 1, 2020
13 changes: 11 additions & 2 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ test:
# - python3 tests/conftest.py
- pytest --docker

release:
release_pip:
stage: releasing
only:
- tags
Expand All @@ -53,4 +53,13 @@ release:
# Add --repository-url https://test.pypi.org/legacy/ for testing the release procedure
- ls -l dist && python3 -m twine upload --verbose --user __token__ dist/*


release_binaries:
stage: releasing
only:
- tags
script:
# Make sure the version-number is compatibe to the scheme
- if ! [[ $CI_COMMIT_TAG =~ ^v[0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,2}$ ]]; then exit 1; fi
- pip3 install github-binary-upload
- cd pyinstaller && ./build-unix.sh $CI_COMMIT_TAG
- pwd && echo $GH_BIN_UPLOAD_PW | github-binary-upload -u gitlab_upload_release_binaries cryptoadvance/specter-desktop $CI_COMMIT_TAG ./release/specterd-${CI_COMMIT_TAG}-x86_64-linux-gnu.tar.gz ./release/specter_desktop-${CI_COMMIT_TAG}-x86_64-linux-gnu.tar.gz