Skip to content

Replace the whole line really. #11

Replace the whole line really.

Replace the whole line really. #11

Workflow file for this run

name: Build Debian Package
on:
push:
tags:
- 'v*' # Trigger on tags starting with 'v'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Get version from tag
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF#refs/tags/v}
- name: Update version
run: |
sed -i "s/^Version: 1\.0\.0$/Version: ${{ steps.get_version.outputs.VERSION }}/" pkg/DEBIAN/control
- name: Build package
run: |
mkdir -p pkg/usr/share/kcmkeys/
cp arrans-kde-keyboard-shortcuts-with-meta.kksrc pkg/usr/share/kcmkeys/arrans.kksrc
dpkg-deb --root-owner-group --build pkg/ .
- name: Upload package as release artifact
uses: actions/upload-release-asset@v1
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ../kde-keyboard-shortcuts-with-meta_${{ steps.get_version.outputs.VERSION }}_all.deb
asset_name: kde-keyboard-shortcuts-with-meta_${{ steps.get_version.outputs.VERSION }}_all.deb
asset_content_type: application/octet-stream
token: ${{ secrets.GITHUB_TOKEN }}