Skip to content

Commit

Permalink
ci: added release workflow to upload to AUR
Browse files Browse the repository at this point in the history
  • Loading branch information
BartSte committed Apr 10, 2024
1 parent 7faea40 commit d1e0dc8
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
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/github-actions-deploy-aur@fzf-help
with:
pkgname: fzf-help
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
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
nvim.shada
Session.vim
*.pkg.tar.zst
pkg
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ user. A change is always categorized based on the following types:

If a change is breaking, this is mentioned and a major version is released.

# 2.1.2

## Improvements

- Added PKGBUILD for Arch Linux.

# 2.1.1

## Bug
Expand Down
19 changes: 19 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Maintainer: BartSte bartsteensma@outlook.com

pkgname=fzf-help
pkgver=2.1.1
pkgrel=1
pkgdesc="Use fzf to select command line options from --help"
arch=('any')
url="https://github.com/BartSte/fzf-help"
license=('MIT')
depends=('fzf' 'bat')
makedepends=('git')
source=("$pkgname::git+https://github.com/BartSte/fzf-help.git")
md5sums=('SKIP')
changelog="CHANGELOG.md"

package() {
"$srcdir/$pkgname/install"
}

0 comments on commit d1e0dc8

Please sign in to comment.