From 848a156384ef74560507b277d8080ec1e5b6db08 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Sun, 10 Mar 2024 17:07:47 +0100 Subject: [PATCH] Try to allow to use this repository as Forgejo Action --- action.yml | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 action.yml diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..f42d991 --- /dev/null +++ b/action.yml @@ -0,0 +1,49 @@ +--- +name: "Publish Debian package on a Aptly repository" +author: "Benjamin Renard " +description: "Publish one (or more) Debian package on a Aptly repository using its API" +inputs: + api_url: + description: "Your Aptly API URL" + required: true + api_username: + description: "Username to authenticate on your Aptly API" + required: true + api_password: + description: "Password to authenticate on your Aptly API" + required: true + prefix: + description: "The publishing prefix" + default: "." + repo_component: + description: "The component name to publish on" + default: "main" + repo_name: + description: "The repository name to publish on. If not specified, it will be computed using the specified prefix and component and the detected package distribution. See doc for details." + path: + description: "Path to the directory where files to publish are stored" + default: "dist" + source_name: + description: "Name of the source package to publish (optional, default: all changes files are will be publish)" + max_retries: + description: "The number of retry in case of error calling the Aptly API (optional, default: no retry)" + force_overwrite: + description: "When publishing, overwrite files in pool/ directory without notice" + default: false + +runs: + using: "composite" + steps: + - name: "Publishing" + env: + API_URL: ${{ inputs.api_url }} + API_USERNAME: ${{ inputs.api_username }} + API_PASSWORD: ${{ inputs.api_password }} + PREFIX: ${{ inputs.prefix }} + REPO_COMPONENT: ${{ inputs.repo_component }} + REPO_NAME: ${{ inputs.repo_name }} + PATH: ${{ inputs.path }} + SOURCE_NAME: ${{ inputs.source_name }} + MAX_RETRIES: ${{ inputs.max_retries }} + FORCE_OVERWRITE: ${{ inputs.force_overwrite }} + run: aptly-publish