Upload QMK Fedora Packages #2
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
# This workflow will upload a .rpm Package | |
name: Upload QMK Fedora Packages | |
on: | |
workflow_dispatch: | |
jobs: | |
deploy: | |
strategy: | |
matrix: | |
version: [36, 37, 38] | |
include: | |
- version: 36 | |
container: fedora:36 | |
- version: 37 | |
container: fedora:37 | |
- version: 38 | |
container: fedora:38 | |
runs-on: ubuntu-latest | |
container: ${{ matrix.container }} | |
steps: | |
# Environment Setup | |
- name: Install system dependencies | |
run: | | |
dnf install -y ruby-devel gcc make rpm-build rpm-sign libffi-devel createrepo python3-pip git | |
python3 -m pip install virtualenv-tools3 | |
gem install --no-document fpm | |
- name: Setup git | |
run: | | |
git config --global user.name "QMK Bot" | |
git config --global user.email "[email protected]" | |
# Fetch our git repo | |
- uses: actions/checkout@v4 | |
# Build Fedora package | |
- name: Build fedora package | |
run: ./build_fedora_package.sh | |
- name: Build fedora package repository | |
env: | |
QMK_GPG_PRIVATE_KEY: ${{ secrets.QMK_GPG_PRIVATE_KEY }} | |
run: ./build_fedora_repo.sh | |
- name: Upload Fedora 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: 'rpm_repo' | |
DEST_DIR: 'dists/fedora/${{ matrix.version }}' |