Skip to content

Upload Debian Bullseye Package #2

Upload Debian Bullseye Package

Upload Debian Bullseye Package #2

# This workflow will upload a .deb Package
name: Upload Debian Bullseye Package
on:
workflow_dispatch:
jobs:
deploy:
strategy:
matrix:
codename: [buster, bullseye, bookworm, focal, jammy]
include:
- codename: buster
container: debian:buster
- codename: bullseye
container: debian:bullseye
- codename: bookworm
container: debian:bookworm
- codename: focal
container: ubuntu:focal
- codename: jammy
container: ubuntu:jammy
- codename: kinetic
container: ubuntu:kinetic
- codename: lunar
container: ubuntu:lunar
runs-on: ubuntu-latest
container: ${{ matrix.container }}
steps:
- uses: actions/checkout@v4
# Environment Setup
- name: Install system dependencies
run: |
apt-get update
apt-get install -y build-essential apt-utils python3-pip python3-venv python3-pillow ruby ruby-dev rubygems git zlib1g-dev
apt-get install -y dpkg-sig || true
apt-get install -y debdelta || true
python3 -m pip install virtualenv-tools3 wheel
gem install --no-document fpm
# Build Debian package
- name: Build debian package
run: ./build_deb_package.sh
- name: Build debian package repository
env:
QMK_GPG_PRIVATE_KEY: ${{ secrets.QMK_GPG_PRIVATE_KEY }}
run: ./build_deb_repo.sh
- name: Upload Debian Repo
uses: jakejarvis/s3-sync-action@master
with:
args: --acl public-read --follow-symlinks --delete
env:
AWS_S3_BUCKET: qmk-linux
AWS_ACCESS_KEY_ID: ${{ secrets.SPACES_ACCESS_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.SPACES_SECRET_KEY }}
AWS_S3_ENDPOINT: https://nyc3.digitaloceanspaces.com
SOURCE_DIR: 'deb_repo'
DEST_DIR: 'dists/${{ matrix.codename }}'