Skip to content

secondlife/action-nfpm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.

About

Create linux packages with nFPM

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •