Nitrux Software Center Deb #65
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Nitrux Software Center Deb | |
on: | |
workflow_dispatch: | |
inputs: | |
packageCloudRepo: | |
description: 'Package Cloud Repo' | |
required: true | |
default: 'testing' | |
type: choice | |
options: | |
- repo | |
- testing | |
- compat | |
packageVersion: | |
description: 'Package Version' | |
required: true | |
type: string | |
jobs: | |
build-deb: | |
runs-on: ubuntu-22.04 | |
container: | |
image: ubuntu:jammy | |
env: | |
DEBIAN_FRONTEND: noninteractive | |
PACKAGECLOUD_TOKEN: ${{ secrets.PACKAGECLOUD_TOKEN }} | |
steps: | |
- name: Install basic packages | |
run: apt-get update -q && apt-get -qy install sudo && apt-get -qy install curl wget gnupg python3-pip patchelf build-essential ruby-full | |
- name: Install package cloud | |
run: gem install package_cloud | |
- name: Add required repo list | |
run: | | |
sudo touch /etc/apt/sources.list.d/neon.list | |
echo "deb http://archive.neon.kde.org/user jammy main" | sudo tee -a /etc/apt/sources.list.d/neon.list | |
curl 'http://keyserver.ubuntu.com/pks/lookup?op=get&search=0xE6D4736255751E5D' | sudo apt-key add - | |
- uses: actions/checkout@v2 | |
- name: Install build dependencies | |
run: ./scripts/install-build-deps.sh | |
- name: Generate deb | |
run: ./scripts/build-deb.sh | |
env: | |
PACKAGE_VERSION: ${{ inputs.packageVersion }} | |
- name: 'Upload Artifact' | |
uses: actions/upload-artifact@v3 | |
with: | |
name: deb-package | |
path: ./build/*.deb | |
retention-days: 1 | |
- name: Upload package to Package Cloud | |
run: package_cloud push nitrux/${{ inputs.packageCloudRepo }}/debian/trixie ./build/*.deb |