Skip to content
box

GitHub Action

Build an RPM

1.1.1 Latest version

Build an RPM

box

Build an RPM

Build an RPM on different distributions

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Build an RPM

uses: robertdebock/rpmbuild-action@1.1.1

Learn more about this action in robertdebock/rpmbuild-action

Choose a version

RPMbuild action

A GitHub action to build an RPM.

Inputs

distribution

The distribution to run on. Currently supported:

Requirements

This action expects the following structure:

.
├── README.md
├── SOURCES
│   └── my-1.0.0.tar.gz
└── SPECS
    └── my.spec

Example usage

A full example can be found in this my_rpm example.

.github/workflows/rpmbuild.yml:

---
name: Build RPM

on:
  - push

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v2
      - name: rpmbuild
        uses: robertdebock/rpmbuild-action@1.1.1