Try to allow to use this repository as Forgejo Action
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
0b15f1c2a8
commit
848a156384
1 changed files with 49 additions and 0 deletions
49
action.yml
Normal file
49
action.yml
Normal file
|
@ -0,0 +1,49 @@
|
|||
---
|
||||
name: "Publish Debian package on a Aptly repository"
|
||||
author: "Benjamin Renard <brenard@zionetrix.net>"
|
||||
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
|
Loading…
Reference in a new issue