-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (55 loc) · 1.88 KB
/
debian-publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# 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 }}'