Skip to content

Upload release assets #3

Upload release assets

Upload release assets #3

Workflow file for this run

name: Upload release assets
permissions:
contents: write
on:
release:
types:
- created
jobs:
build-deb:
name: Build and upload deb package
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
sudo add-apt-repository -y ppa:rockowitz/ddcutil
sudo apt-get update
sudo apt-get install -y libgtk-3-dev ddcutil libddcutil-dev libglib2.0-dev gcc
- name: Set up Git repository
uses: actions/checkout@v2
- name: Initialize ddcbc-api git submodule
run: git submodule update --init ddcbc-api
- name: Build package
run: ./build-deb.sh
- name: Upload package
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/luminance.deb
asset_name: luminance-${{ github.event.release.tag_name }}.deb
tag: ${{ github.ref }}
build-rpm:
name: Build and upload rpm package
runs-on: ubuntu-latest
container:
image: fedora:latest
steps:
- name: Install dependencies
run: |
sudo dnf install -y git-all ddcutil libddcutil libddcutil-devel gtk3-devel fedora-packager rpmdevtools gcc
- name: Set up Git repository
uses: actions/checkout@v2
- name: Initialize ddcbc-api git submodule
run: |
git config --global --add safe.directory /__w/Luminance/Luminance
git submodule update --init ddcbc-api
- name: Build package
run: ./build-rpm.sh
- name: Upload package
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: ./build/luminance.rpm
asset_name: luminance-${{ github.event.release.tag_name }}.rpm
tag: ${{ github.ref }}