No description
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-10-08 13:27:24 +08:00
action.yaml Link uploaded packages to repositories 2026-10-08 13:27:24 +08:00
README.md Link uploaded packages to repositories 2026-10-08 13:27:24 +08:00
upload.sh Link uploaded packages to repositories 2026-10-08 13:27:24 +08:00

Forgejo Package Registry Upload

A composite action that uploads Debian .deb and Arch Linux .pkg.tar.zst packages to Forgejo package registries.

Usage

Debian

- name: Upload Debian packages
  uses: https://git.1li.tw/actions/[email protected]
  with:
    username: ${{ vars.FORGEJO_PACKAGE_USERNAME }}
    token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
    packages: dist/*.deb
    package_type: debian
    owner: simbafs
    package_name: pinentry-remote
    repository: simbafs/pinentry-remote
    distribution: stable
    component: main

Arch Linux

- name: Upload Arch packages
  uses: https://git.1li.tw/actions/[email protected]
  with:
    username: ${{ vars.FORGEJO_PACKAGE_USERNAME }}
    token: ${{ secrets.FORGEJO_PACKAGE_TOKEN }}
    packages: dist/*.pkg.tar.zst
    package_type: arch
    owner: simbafs
    package_name: pinentry-remote
    repository: simbafs/pinentry-remote
    group: extra

package_type defaults to debian. owner and server default to the current repository owner and Forgejo instance. packages accepts newline-separated file paths or shell globs; every pattern must match at least one file. Set package_name to link the uploaded package to a repository after upload; repository defaults to the current repository and accepts either repo or owner/repo.

The token must have package write access for the selected owner. Debian packages use the selected distribution and component. Arch packages are uploaded to the selected repository group; Forgejo creates the package signature and pacman database metadata.