forgejo-action-debian-packa.../action.yml
2023-12-19 02:45:30 +01:00

36 lines
1.1 KiB
YAML

---
name: Debian Package Upload
description: Upload a Debian deb package to a Forgejo/Gitea package registry
inputs:
deb:
description: Path to the deb package. Can contain shell glob expressions.
default: "*.deb"
repository:
description: Forgejo/Gitea Debian repository URL.
default: "${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/debian"
distribution:
description: Repository distribution to upload to.
default: stable
component:
description: Repository component to upload to.
default: main
username:
description: The username with which to authenticate against the repository.
default: forgejo-actions
password:
description: The password with which to authenticate against the repository.
default: "${GITHUB_TOKEN}"
runs:
using: docker
image: docker://docker.io/curlimages/curl:latest
entrypoint: /bin/sh
args:
- -c
- >-
curl
--user
"${{ inputs.username }}:${{ inputs.password }}"
--upload-file
${{ inputs.deb }}
"${{ inputs.repository }}/pool/${{ inputs.distribution }}/${{ inputs.component }}/upload"