/action-nfpm

Create linux packages with nFPM

MIT LicenseMIT

action-nfpm

A helper for building linux packages with nFPM using version information from git tags. Using this action allows you to specify ${VERSION} in your nfpm.yaml and have the last valid git version used.

Example

action-nfpm creates Debian (*.deb) packages by default. Artifacts are placed in dist/* unless configured otherwise with the target: input.

Debian

Assuming you have a repository with a nfpm.yaml file in its root:

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: secondlife/action-nfpm@v2
      - uses: actions/upload-artifact@v4
        with:
          name: dist
          path: dist/

RPM

Alternative distribution archives can be built by specifying a valid nFPM packager::

jobs:
  build:
    name: Build
    runs-on: ubuntu-latest
    steps:
      - uses: secondlife/action-nfpm@v2
        with:
          packager: rpm
      - uses: actions/upload-artifact@v4
        with:
          name: dist
          path: dist/

For a full list of available inputs see action.yaml.