Skip to content

Commit

Permalink
aur auto-release
Browse files Browse the repository at this point in the history
  • Loading branch information
deadc0de6 committed Jul 1, 2024
1 parent 14c4066 commit 66b4720
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/aur-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Release to aur
on:
release:
types: [created]
workflow_dispatch:
jobs:
aur_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Prepare AUR package
env:
RELEASE_TAG: ${{ github.ref }}
run: |
version=$(echo ${RELEASE_TAG} | sed 's#^.*v##g')
sed -i "s/^pkgver=.*$/pkgver=${version}/g" packages/arch-gocatcli-git/PKGBUILD
cat packages/arch-gocatcli-git/PKGBUILD
- name: Publish to aur
uses: KSXGitHub/[email protected]
with:
pkgname: gocatcli-git
pkgbuild: ./packages/arch-gocatcli-git/PKGBUILD
commit_username: ${{ secrets.AUR_USERNAME }}
commit_email: ${{ secrets.AUR_EMAIL }}
ssh_private_key: ${{ secrets.AUR_SSH_PRIVATE_KEY }}
commit_message: "bump version"

0 comments on commit 66b4720

Please sign in to comment.