Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d1ba6747ef | ||
|
|
4338c8c034 | ||
|
|
c809ec8b77 | ||
|
|
90cb90349e | ||
|
|
11b52f03a3 |
@@ -4,6 +4,17 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- 'v*'
|
||||
# Re-publish without a new upstream release, e.g. a PKGBUILD-only fix:
|
||||
# run it on master with the released version and the next pkgrel.
|
||||
workflow_dispatch:
|
||||
inputs:
|
||||
version:
|
||||
description: 'Released version to package, without the v (e.g. 1.2.3)'
|
||||
required: true
|
||||
pkgrel:
|
||||
description: 'Package release number'
|
||||
required: true
|
||||
default: '1'
|
||||
|
||||
jobs:
|
||||
aur:
|
||||
@@ -19,9 +30,16 @@ jobs:
|
||||
- name: Extract version from tag
|
||||
id: version
|
||||
run: |
|
||||
TAG="${GITHUB_REF#refs/tags/v}"
|
||||
echo "version=$TAG" >> "$GITHUB_OUTPUT"
|
||||
echo "Publishing pi3-smart-workspace v$TAG to AUR"
|
||||
if [ "${{ github.event_name }}" = "workflow_dispatch" ]; then
|
||||
VERSION="${{ inputs.version }}"
|
||||
PKGREL="${{ inputs.pkgrel }}"
|
||||
else
|
||||
VERSION="${GITHUB_REF#refs/tags/v}"
|
||||
PKGREL=1
|
||||
fi
|
||||
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
|
||||
echo "pkgrel=$PKGREL" >> "$GITHUB_OUTPUT"
|
||||
echo "Publishing $VERSION-$PKGREL to AUR"
|
||||
|
||||
- name: Configure SSH for AUR
|
||||
run: |
|
||||
@@ -59,7 +77,7 @@ jobs:
|
||||
run: |
|
||||
cp packaging/aur/PKGBUILD aur-pkg/PKGBUILD
|
||||
sed -i "s/^pkgver=.*/pkgver=${{ steps.version.outputs.version }}/" aur-pkg/PKGBUILD
|
||||
sed -i "s/^pkgrel=.*/pkgrel=1/" aur-pkg/PKGBUILD
|
||||
sed -i "s/^pkgrel=.*/pkgrel=${{ steps.version.outputs.pkgrel }}/" aur-pkg/PKGBUILD
|
||||
|
||||
- name: Update checksums and regenerate .SRCINFO
|
||||
run: |
|
||||
@@ -78,5 +96,19 @@ jobs:
|
||||
echo "No changes — nothing to push."
|
||||
exit 0
|
||||
fi
|
||||
git commit -m "Update to ${{ steps.version.outputs.version }}"
|
||||
git commit -m "Update to ${{ steps.version.outputs.version }}-${{ steps.version.outputs.pkgrel }}"
|
||||
git push -u origin master
|
||||
|
||||
# Mirror the same PKGBUILD to https://asger.weirsøe.dk/tarballz/, the
|
||||
# human-readable package index. The key is pinned on the web host to a
|
||||
# forced command that can only write this one file, and a failure there
|
||||
# must never turn an otherwise good AUR release red.
|
||||
- name: Publish PKGBUILD to the tarballz index
|
||||
continue-on-error: true
|
||||
env:
|
||||
TARBALLZ_SSH_KEY: ${{ secrets.TARBALLZ_SSH_KEY }}
|
||||
run: |
|
||||
printf '%s\n' "$TARBALLZ_SSH_KEY" > ~/.ssh/tarballz
|
||||
chmod 600 ~/.ssh/tarballz
|
||||
ssh -i ~/.ssh/tarballz -o IdentitiesOnly=yes -o StrictHostKeyChecking=accept-new \
|
||||
"${{ secrets.TARBALLZ_TARGET }}" < aur-pkg/PKGBUILD
|
||||
|
||||
@@ -1,14 +1,16 @@
|
||||
# Maintainer: Asger Geel Weirsoe <asger@weircon.dk>
|
||||
# Maintainer: Asger Geel Weirsoe <asger at weircon dot dk>
|
||||
# build recipe: https://gitea.weircon.dk/agw/pi3-smart-workspace
|
||||
pkgname=pi3-smart-workspace
|
||||
pkgver=0.0.0
|
||||
pkgrel=1
|
||||
pkgdesc="Switch i3 workspaces based on which output your mouse cursor is on"
|
||||
arch=('any')
|
||||
url="https://gitea.weircon.dk/agw/pi3-smart-workspace"
|
||||
url="https://asger.weirsøe.dk/en/projects/pi3-smart-workspace"
|
||||
_repo="https://gitea.weircon.dk/agw/pi3-smart-workspace"
|
||||
license=('Apache-2.0')
|
||||
depends=('python' 'i3-wm' 'python-i3ipc' 'python-pynput')
|
||||
makedepends=('python-build' 'python-installer' 'python-hatchling' 'python-wheel')
|
||||
source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
|
||||
source=("$pkgname-$pkgver.tar.gz::$_repo/archive/v$pkgver.tar.gz")
|
||||
sha256sums=('SKIP')
|
||||
|
||||
build() {
|
||||
|
||||
Reference in New Issue
Block a user