GitHub Action for packaging apps as DEB or RPM. Should be used as a replacement for Packager.io hosted service.
name: Package
on: [push]
jobs:
build:
name: ${{ matrix.target }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- debian:10
- debian:11
- debian:12
- ubuntu:20.04
- ubuntu:22.04
- ubuntu:24.04
- el:7
- el:8
- el:9
- sles:12
- sles:15
steps:
- uses: actions/checkout@v4
- uses: pkgr/actions@v1
id: package
with:
target: ${{ matrix.target }}
version: '1.0.0'
- name: Upload
uses: actions/upload-artifact@v4
with:
name: ${{ steps.package.outputs.package_name }}
path: ${{ steps.package.outputs.package_path }}