[presets.gitea] variables.publish_repo = "{{ 'PUBLISH_REPO' | env }}" variables.publish_repo_path = "{{ publish_repo }}/generic/{{ project_name }}/{{ project_version }}" variables.publish_user = "{{ 'PUBLISH_USER' | env }}" variables.publish_password = "{{ 'PUBLISH_PASSWORD' | env }}" variables.publish_auth = "{{ publish_user }}:{{ publish_password }}" variables.publish_artefacts = {} [presets.gitea.tasks.publish."{{ publish_artefacts | tojson }}"] conditions = ["{{ item | file }}"] variables.artefact_file = "{{ item }}" variables.artefact_name = "{{ (artefact_file | file).name }}" commands = [ "curl --user \"{{ publish_auth }}\" -X DELETE \"{{ publish_repo_path }}/{{ artefact_name }}\"", "curl --user \"{{ publish_auth }}\" --fail --upload-file \"{{ artefact_file }}\" \"{{ publish_repo_path }}/{{ artefact_name }}\"", ] [presets.gitea.tasks.publish.debian_repo] conditions = ["{{ publish_artefacts.debian | file }}"] variables.artefact_file = "{{ publish_artefacts.debian }}" commands = [ "curl --user \"{{ publish_auth }}\" -X DELETE \"{{ publish_repo }}/debian/pool/noble/main/{{ project_name }}/{{ project_version }}/all\"", "curl --user \"{{ publish_auth }}\" --fail --upload-file \"{{ artefact_file }}\" \"{{ publish_repo }}/debian/pool/noble/main/upload\"", ]