Skip to content
Snippets Groups Projects
Commit ac8f93c5 authored by Frederik Arnold's avatar Frederik Arnold
Browse files

Merge branch 'release/v.1.3.3'

parents e35d39d2 f5ce6498
No related branches found
No related tags found
No related merge requests found
Pipeline #37376 passed
......@@ -45,28 +45,28 @@ badge:
only:
- tags
# upload:
# stage: upload
# script:
# - pip install twine
#upload:
# stage: upload
# script:
# - pip install twine
# - cat $PYPIRC > /tmp/.pypirc
# - python -m pip install --upgrade build
# - python -m build
# - python -m twine upload --repository pypi dist/* --config-file /tmp/.pypirc
# only:
# - tags
# - python -m pip install --upgrade build
# - python -m build
# - python -m twine upload --repository pypi dist/* --config-file /tmp/.pypirc
# only:
# - tags
release_job:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- echo $CI_COMMIT_TAG
release:
tag_name: $CI_COMMIT_TAG
name: 'Lotte $CI_COMMIT_TAG'
description: 'Release $CI_COMMIT_TAG'
only:
- tags
#release_job:
# stage: release
# image: registry.gitlab.com/gitlab-org/release-cli:latest
# script:
# - echo $CI_COMMIT_TAG
# release:
# tag_name: $CI_COMMIT_TAG
# name: 'Lotte $CI_COMMIT_TAG'
# description: 'Release $CI_COMMIT_TAG'
# only:
# - tags
zenodo_upload:
stage: zenodo
......
[metadata]
# replace with your username:
name = Lotte
version = 1.3.2
version = 1.3.3
author = Frederik Arnold
author_email = frederik.arnold@hu-berlin.de
description = Lotte is a tool for quotation detection in texts and can deal with common properties of quotations, for example, ellipses or inaccurate quotations.
......
......@@ -41,6 +41,12 @@ def __upload_file(draft_url, access_token, filename, file_path):
response.raise_for_status()
def __publish(draft_url, access_token):
request_url = f'{draft_url}/actions/publish'
response = requests.post(request_url, params={'access_token': access_token})
response.raise_for_status()
def main():
argument_parser = ArgumentParser()
......@@ -83,6 +89,7 @@ def main():
filename = f'{title}-v.{version}.zip'
__upload_file(draft_url, access_token, filename, file_path)
# __publish(draft_url, access_token)
if __name__ == '__main__':
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment