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.
action-nfpm creates Debian (*.deb) packages by default. Artifacts are
placed in dist/*
unless configured otherwise with the target:
input.
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/
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.