Skip to content

Commit 552df74

Browse files
committed
chore(release): bump aur package to 0.1.23 and add auto-publish workflow
- updated PKGBUILD pkgver to 0.1.23 - updated .SRCINFO version and source URLs for 0.1.23 release - added publish-aur job to release.yml for automatic AUR package publishing on new releases
1 parent f5004d9 commit 552df74

File tree

3 files changed

+62
-4
lines changed

3 files changed

+62
-4
lines changed

.github/workflows/release.yml

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,3 +126,61 @@ jobs:
126126
exit 0
127127
fi
128128
npm publish --access public
129+
130+
publish-aur:
131+
name: Publish AUR Package
132+
needs: build-release
133+
runs-on: ubuntu-latest
134+
timeout-minutes: 10
135+
steps:
136+
- uses: actions/checkout@v4
137+
138+
- name: Update PKGBUILD and .SRCINFO
139+
run: |
140+
set -euo pipefail
141+
VERSION=${GITHUB_REF_NAME#v}
142+
cd packaging/aur/openlinear-bin
143+
144+
sed -i "s/^pkgver=.*/pkgver=${VERSION}/" PKGBUILD
145+
sed -i "s/^pkgrel=.*/pkgrel=1/" PKGBUILD
146+
147+
cat > .SRCINFO << EOF
148+
pkgbase = openlinear-bin
149+
pkgdesc = AI-powered project management that actually writes the code — desktop app
150+
pkgver = ${VERSION}
151+
pkgrel = 1
152+
url = https://github.com/kaizen403/openlinear
153+
arch = x86_64
154+
license = MIT
155+
depends = glibc
156+
depends = gtk3
157+
depends = webkit2gtk-4.1
158+
optdepends = libappindicator-gtk3: system tray support
159+
optdepends = xdg-utils: open links in browser
160+
provides = openlinear
161+
conflicts = openlinear
162+
source = openlinear-${VERSION}-x86_64.AppImage::https://github.com/kaizen403/openlinear/releases/download/v${VERSION}/openlinear-${VERSION}-x86_64.AppImage
163+
source = openlinear.desktop
164+
source = openlinear.png::https://raw.githubusercontent.com/kaizen403/openlinear/v${VERSION}/apps/desktop/src-tauri/icons/icon.png
165+
sha256sums = SKIP
166+
sha256sums = SKIP
167+
sha256sums = SKIP
168+
169+
pkgname = openlinear-bin
170+
EOF
171+
172+
# Remove leading whitespace from heredoc
173+
sed -i 's/^ //' .SRCINFO
174+
175+
- name: Publish to AUR
176+
uses: KSXGitHub/github-actions-deploy-aur@v3.0.1
177+
with:
178+
pkgname: openlinear-bin
179+
pkgbuild: packaging/aur/openlinear-bin/PKGBUILD
180+
assets: |
181+
packaging/aur/openlinear-bin/.SRCINFO
182+
packaging/aur/openlinear-bin/openlinear.desktop
183+
commit_username: kaizen403
184+
commit_email: kaizen403@proton.me
185+
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
186+
commit_message: "Update to ${{ github.ref_name }}"

packaging/aur/openlinear-bin/.SRCINFO

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pkgbase = openlinear-bin
22
pkgdesc = AI-powered project management that actually writes the code — desktop app
3-
pkgver = 0.1.25
3+
pkgver = 0.1.23
44
pkgrel = 1
55
url = https://github.com/kaizen403/openlinear
66
arch = x86_64
@@ -12,9 +12,9 @@ pkgbase = openlinear-bin
1212
optdepends = xdg-utils: open links in browser
1313
provides = openlinear
1414
conflicts = openlinear
15-
source = openlinear-0.1.25-x86_64.AppImage::https://github.com/kaizen403/openlinear/releases/download/v0.1.25/openlinear-0.1.25-x86_64.AppImage
15+
source = openlinear-0.1.23-x86_64.AppImage::https://github.com/kaizen403/openlinear/releases/download/v0.1.23/openlinear-0.1.23-x86_64.AppImage
1616
source = openlinear.desktop
17-
source = openlinear.png::https://raw.githubusercontent.com/kaizen403/openlinear/v0.1.25/apps/desktop/src-tauri/icons/icon.png
17+
source = openlinear.png::https://raw.githubusercontent.com/kaizen403/openlinear/v0.1.23/apps/desktop/src-tauri/icons/icon.png
1818
sha256sums = SKIP
1919
sha256sums = SKIP
2020
sha256sums = SKIP

packaging/aur/openlinear-bin/PKGBUILD

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Maintainer: kaizen403 <kaizen403@proton.me>
22
pkgname=openlinear-bin
3-
pkgver=0.1.25
3+
pkgver=0.1.23
44
pkgrel=1
55
pkgdesc="AI-powered project management that actually writes the code — desktop app"
66
arch=('x86_64')

0 commit comments

Comments
 (0)