feat: initial commit
This commit is contained in:
commit
8adf0e6e06
1 changed files with 36 additions and 0 deletions
36
action.yml
Normal file
36
action.yml
Normal 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"
|
Loading…
Reference in a new issue