Skip to content

Build release

Build release #11

Workflow file for this run

name: Build release
on:
push:
tags:
- freeipa-jpegphoto-*
jobs:
build:
runs-on: ubuntu-latest
container: fedora:37
steps:
- name: Install build tools
run: dnf install -y git tito
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install build dependencies
run: dnf builddep -y $GITHUB_WORKSPACE/freeipa-jpegphoto.spec
- name: Build rpm
run: |
git config --global --add safe.directory "$GITHUB_WORKSPACE"
cd $GITHUB_WORKSPACE
tito build --offline --rpm -o .
- name: Test installation of built rpm
run: dnf install -y noarch/*.rpm
- uses: actions/upload-artifact@v3
with:
name: rpms
path: ${{ github.workspace }}/noarch/*.rpm