mirror of
https://github.com/arcan1s/awesome-widgets.git
synced 2025-04-24 15:37:23 +00:00
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
|
|
jobs:
|
|
make-release:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: create changelog
|
|
id: changelog
|
|
uses: jaywcjlove/changelog-generator@main
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
filter: 'Release \d+\.\d+\.\d+'
|
|
|
|
- name: create archive
|
|
run: bash create_archive.sh
|
|
env:
|
|
VERSION: ${{ steps.version.outputs.VERSION }}
|
|
|
|
- name: build debian package
|
|
run: >
|
|
apt update && \
|
|
apt install -yq cmake extra-cmake-modules g++ git gettext &&
|
|
apt install -yq libkf5i18n-dev libkf5notifications-dev libkf5service-dev
|
|
libkf5windowsystem-dev libkf5plasma-dev qtbase5-dev qtdeclarative5-dev
|
|
plasma-workspace-dev &&
|
|
cmake -B build-deb -DKDE_INSTALL_USE_QT_SYS_PATHS=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Optimization -DBUILD_FUTURE=ON -DBUILD_DEB_PACKAGE=ON sources &&
|
|
cd build-deb &&
|
|
make package &&
|
|
cd ..
|
|
|
|
- name: release
|
|
uses: softprops/action-gh-release@v1
|
|
with:
|
|
body: |
|
|
${{ steps.changelog.outputs.compareurl }}
|
|
${{ steps.changelog.outputs.changelog }}
|
|
files: |
|
|
awesome-widgets-*-src.tar.xz
|
|
build-deb/awesome-widgets-*.deb
|
|
fail_on_unmatched_files: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|