Compare commits

...

3 Commits

View File

@ -36,7 +36,7 @@ package_linux:
- pipenv sync --dev - pipenv sync --dev
script: script:
- pipenv run python -m build -w - pipenv run python -m build -w
- pipenv run pyinstaller --onefile --strip --name "${LINUX_AMD64_BINARY}" src/fime/main.py - pipenv run pyinstaller --onefile --name "${LINUX_AMD64_BINARY}" src/fime/main.py
artifacts: artifacts:
paths: paths:
- dist/*.whl - dist/*.whl
@ -45,6 +45,8 @@ package_linux:
upload: upload:
stage: deploy stage: deploy
image: curlimages/curl:latest image: curlimages/curl:latest
rules:
- if: $CI_COMMIT_TAG
script: script:
- | - |
curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${LINUX_AMD64_BINARY}" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}" curl --header "JOB-TOKEN: $CI_JOB_TOKEN" --upload-file "dist/${LINUX_AMD64_BINARY}" "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}"
@ -60,3 +62,9 @@ release_job:
tag_name: $CI_COMMIT_TAG tag_name: $CI_COMMIT_TAG
name: 'Release $CI_COMMIT_TAG' name: 'Release $CI_COMMIT_TAG'
description: 'Release created using the release-cli.' description: 'Release created using the release-cli.'
assets:
links:
- name: "${LINUX_AMD64_BINARY}"
url: "${PACKAGE_REGISTRY_URL}/${LINUX_AMD64_BINARY}"
filepath: "/bin/fime_linux_amd64"
link_type: package