forked from Boria138/PortProtonQt
ci: added autorelease thx to @xpamych
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
parent
8547817282
commit
5bfd23995c
@ -2,12 +2,16 @@ name: Build AppImage, Arch and Fedora Packages
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v[0-9]+.[0-9]+.[0-9]+'
|
||||||
|
|
||||||
env:
|
env:
|
||||||
# Common version, will be used for tagging the release
|
# Common version, will be used for tagging the release
|
||||||
VERSION: 0.1.1
|
VERSION: v0.1.1
|
||||||
PKGDEST: "/tmp/portprotonqt"
|
PKGDEST: "/tmp/portprotonqt"
|
||||||
PACKAGE: "portprotonqt"
|
PACKAGE: "portprotonqt"
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-appimage:
|
build-appimage:
|
||||||
@ -130,3 +134,27 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: PortProtonQt-RPM-Fedora-${{ matrix.fedora_version }}
|
name: PortProtonQt-RPM-Fedora-${{ matrix.fedora_version }}
|
||||||
path: /home/rpmbuild/RPMS/**/*.rpm
|
path: /home/rpmbuild/RPMS/**/*.rpm
|
||||||
|
|
||||||
|
release:
|
||||||
|
name: Create and Publish Release
|
||||||
|
needs: [build-appimage, build-arch, build-fedora]
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Download all artifacts
|
||||||
|
uses: https://gitea.com/actions/download-artifact@v4
|
||||||
|
with:
|
||||||
|
path: release/
|
||||||
|
|
||||||
|
- name: Get Changes between Tags
|
||||||
|
id: changes
|
||||||
|
uses: https://github.com/simbo/changes-between-tags-action@v1
|
||||||
|
|
||||||
|
- name: Release
|
||||||
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
|
with:
|
||||||
|
body: ${{ steps.changes.outputs.changes }}
|
||||||
|
token: ${{ env.GITEA_TOKEN }}
|
||||||
|
tag_name: ${{ env.VERSION }}
|
||||||
|
prerelease: true
|
||||||
|
files: release/**/*
|
||||||
|
sha256sum: true
|
||||||
|
@ -8,7 +8,7 @@ license=('GPL-3.0')
|
|||||||
depends=('python-numpy' 'python-requests' 'python-babel' 'python-evdev' 'python-pyudev' 'python-orjson'
|
depends=('python-numpy' 'python-requests' 'python-babel' 'python-evdev' 'python-pyudev' 'python-orjson'
|
||||||
'python-psutil' 'python-tqdm' 'python-vdf' 'pyside6' 'icoextract' 'python-pillow' 'perl-image-exiftool' 'xdg-utils')
|
'python-psutil' 'python-tqdm' 'python-vdf' 'pyside6' 'icoextract' 'python-pillow' 'perl-image-exiftool' 'xdg-utils')
|
||||||
makedepends=('python-'{'build','installer','setuptools','wheel'})
|
makedepends=('python-'{'build','installer','setuptools','wheel'})
|
||||||
source=("git+https://git.linux-gaming.ru/Boria138/PortProtonQt#tag=$pkgver")
|
source=("git+https://git.linux-gaming.ru/Boria138/PortProtonQt#tag=v$pkgver")
|
||||||
sha256sums=('SKIP')
|
sha256sums=('SKIP')
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -47,7 +47,7 @@ PortProtonQt is a modern, user-friendly graphical interface designed to streamli
|
|||||||
%prep
|
%prep
|
||||||
git clone https://git.linux-gaming.ru/Boria138/PortProtonQt
|
git clone https://git.linux-gaming.ru/Boria138/PortProtonQt
|
||||||
cd %{oname}
|
cd %{oname}
|
||||||
git checkout %{pypi_version}
|
git checkout v%{pypi_version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cd %{oname}
|
cd %{oname}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user