Skip to content

Commit

Permalink
improv: added AUR package release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
BartSte committed Apr 11, 2024
1 parent 82bf590 commit 96bcb4d
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: aur-publish

on:
push:
tags:
- 'v[0-9]+\.[0-9]+\.[0-9]+'

jobs:
aur-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: Publish AUR package
uses: KSXGitHub/[email protected]
with:
pkgname: tmux-session
pkgbuild: ./PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: Update AUR package
ssh_keyscan_types: rsa,dsa,ecdsa,ed25519

20 changes: 20 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Maintainer: BartSte [email protected]

pkgname=tmux-session
pkgver=0.1.0
pkgrel=1
pkgdesc="Use fzf to manage your tmux sessions"
arch=('any')
url="https://github.com/BartSte/tmux-session"
license=('MIT')
depends=('fzf' 'tmux')
source=("$pkgname::git+https://github.com/BartSte/tmux-session.git")
md5sums=('SKIP')
changelog="CHANGELOG.md"

package() {
cd "$srcdir/$pkgname"
install -Dm644 LICENCE -t "${pkgdir}/usr/share/licenses/${pkgname}"
install -Dm755 src/tmux-session "${pkgdir}/usr/local/bin/tmux-session"
}

1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ This repository is heavily inspired on ThePrimeagen's [tmux-sessionizer](https:/

# Installation
Ensure that you have the following tools installed:
- [tmux](www.github.com/tmux/tmux)
- [fzf](www.github.com/junegunn/fzf)

Next, run the following command to install `tmux-session` in the
Expand Down

0 comments on commit 96bcb4d

Please sign in to comment.