Compare commits

...

3 Commits

View File

@ -36,7 +36,7 @@ package_linux:
- pipenv sync --dev
script:
- 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:
paths:
- dist/*.whl
@ -45,6 +45,8 @@ package_linux:
upload:
stage: deploy
image: curlimages/curl:latest
rules:
- if: $CI_COMMIT_TAG
script:
- |
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
name: 'Release $CI_COMMIT_TAG'
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