feat: initial commit

This commit is contained in:
s3lph 2023-12-18 23:55:49 +01:00
commit 8adf0e6e06
Signed by: s3lph
GPG key ID: 0AA29A52FB33CFB5

36
action.yml Normal file
View file

@ -0,0 +1,36 @@
---
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.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"