mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-10-01 16:20:26 -04:00
Merge pull request #698 from kiwix/refresh-deb-packages-ci-cd
Refresh deb packages CI/CD
This commit is contained in:
commit
84faf9c09e
62
.github/workflows/package.yml
vendored
62
.github/workflows/package.yml
vendored
@ -1,17 +1,29 @@
|
|||||||
name: Packages
|
name: Packages
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
pull_request:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
release:
|
||||||
|
types: [published]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-deb:
|
build-deb:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-22.04
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
distro:
|
distro:
|
||||||
|
# - debian-unstable
|
||||||
|
# - debian-trixie
|
||||||
|
# - debian-bookworm
|
||||||
|
# - debian-bullseye
|
||||||
|
- ubuntu-noble
|
||||||
- ubuntu-jammy
|
- ubuntu-jammy
|
||||||
- ubuntu-focal
|
- ubuntu-focal
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
|
|
||||||
# Determine which PPA we should upload to
|
# Determine which PPA we should upload to
|
||||||
- name: PPA
|
- name: PPA
|
||||||
@ -26,12 +38,48 @@ jobs:
|
|||||||
env:
|
env:
|
||||||
REF: ${{ github.ref }}
|
REF: ${{ github.ref }}
|
||||||
|
|
||||||
- uses: legoktm/gh-action-auto-dch@master
|
- uses: legoktm/gh-action-auto-dch@main
|
||||||
with:
|
with:
|
||||||
fullname: Kiwix builder
|
fullname: Kiwix builder
|
||||||
email: release+launchpad@kiwix.org
|
email: release+launchpad@kiwix.org
|
||||||
distro: ${{ matrix.distro }}
|
distro: ${{ matrix.distro }}
|
||||||
|
|
||||||
|
# - uses: legoktm/gh-action-build-deb@debian-unstable
|
||||||
|
# if: matrix.distro == 'debian-unstable'
|
||||||
|
# name: Build package for debian-unstable
|
||||||
|
# id: build-debian-unstable
|
||||||
|
# with:
|
||||||
|
# args: --no-sign
|
||||||
|
#
|
||||||
|
# - uses: legoktm/gh-action-build-deb@b47978ba8498dc8b8153cc3b5f99a5fc1afa5de1 # pin@debian-trixie
|
||||||
|
# if: matrix.distro == 'debian-trixie'
|
||||||
|
# name: Build package for debian-trixie
|
||||||
|
# id: build-debian-trixie
|
||||||
|
# with:
|
||||||
|
# args: --no-sign
|
||||||
|
#
|
||||||
|
# - uses: legoktm/gh-action-build-deb@1f4e86a6bb34aaad388167eaf5eb85d553935336 # pin@debian-bookworm
|
||||||
|
# if: matrix.distro == 'debian-bookworm'
|
||||||
|
# name: Build package for debian-bookworm
|
||||||
|
# id: build-debian-bookworm
|
||||||
|
# with:
|
||||||
|
# args: --no-sign
|
||||||
|
#
|
||||||
|
# - uses: legoktm/gh-action-build-deb@084b4263209252ec80a75d2c78a586192c17f18d # pin@debian-bullseye
|
||||||
|
# if: matrix.distro == 'debian-bullseye'
|
||||||
|
# name: Build package for debian-bullseye
|
||||||
|
# id: build-debian-bullseye
|
||||||
|
# with:
|
||||||
|
# args: --no-sign
|
||||||
|
|
||||||
|
- uses: legoktm/gh-action-build-deb@9114a536498b65c40b932209b9833aa942bf108d # pin@ubuntu-noble
|
||||||
|
if: matrix.distro == 'ubuntu-noble'
|
||||||
|
name: Build package for ubuntu-noble
|
||||||
|
id: build-ubuntu-noble
|
||||||
|
with:
|
||||||
|
args: --no-sign
|
||||||
|
ppa: ${{ steps.ppa.outputs.ppa }}
|
||||||
|
|
||||||
- uses: legoktm/gh-action-build-deb@ubuntu-jammy
|
- uses: legoktm/gh-action-build-deb@ubuntu-jammy
|
||||||
if: matrix.distro == 'ubuntu-jammy'
|
if: matrix.distro == 'ubuntu-jammy'
|
||||||
name: Build package for ubuntu-jammy
|
name: Build package for ubuntu-jammy
|
||||||
@ -53,7 +101,7 @@ jobs:
|
|||||||
name: Packages for ${{ matrix.distro }}
|
name: Packages for ${{ matrix.distro }}
|
||||||
path: output
|
path: output
|
||||||
|
|
||||||
- uses: legoktm/gh-action-dput@master
|
- uses: legoktm/gh-action-dput@main
|
||||||
name: Upload dev package
|
name: Upload dev package
|
||||||
# Only upload on pushes to git default branch
|
# Only upload on pushes to git default branch
|
||||||
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' && startswith(matrix.distro, 'ubuntu-')
|
if: github.event_name == 'push' && github.event.ref == 'refs/heads/main' && startswith(matrix.distro, 'ubuntu-')
|
||||||
@ -62,9 +110,9 @@ jobs:
|
|||||||
repository: ppa:kiwixteam/dev
|
repository: ppa:kiwixteam/dev
|
||||||
packages: output/*_source.changes
|
packages: output/*_source.changes
|
||||||
|
|
||||||
- uses: legoktm/gh-action-dput@master
|
- uses: legoktm/gh-action-dput@main
|
||||||
name: Upload release package
|
name: Upload release package
|
||||||
# Only upload on pushes to master or tag
|
# Only upload on pushes to main or tag
|
||||||
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && startswith(matrix.distro, 'ubuntu-')
|
if: github.event_name == 'push' && startsWith(github.event.ref, 'refs/tags') && startswith(matrix.distro, 'ubuntu-')
|
||||||
with:
|
with:
|
||||||
gpg_key: ${{ secrets.LAUNCHPAD_GPG }}
|
gpg_key: ${{ secrets.LAUNCHPAD_GPG }}
|
||||||
|
4
debian/control
vendored
4
debian/control
vendored
@ -8,8 +8,8 @@ Build-Depends: debhelper-compat (= 13),
|
|||||||
cmake,
|
cmake,
|
||||||
libdocopt-dev,
|
libdocopt-dev,
|
||||||
meson,
|
meson,
|
||||||
pkg-config,
|
pkgconf,
|
||||||
Standards-Version: 4.5.0
|
Standards-Version: 4.6.2
|
||||||
Homepage: https://github.com/kiwix/kiwix-tools
|
Homepage: https://github.com/kiwix/kiwix-tools
|
||||||
Rules-Requires-Root: no
|
Rules-Requires-Root: no
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user