Skip to content

Commit

Permalink
feat(workflows): github workflows now should properly make PKGBUILD a…
Browse files Browse the repository at this point in the history
…nd SRCINFO
  • Loading branch information
iamwacko committed Jan 25, 2024
1 parent b22edb2 commit 0323495
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/aur-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,19 @@ jobs:
release-aur:
name: release aur
runs-on: ubuntu-latest
container:
image: archlinux/archlinux:base-devel
if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }}
steps:
- name: Update and install packages
run: |
sudo pacman -Syu --noconfirm --noprogressbar
sudo pacman -S --noconfirm --noprogressbar curl
- name: Get PKGBUILD and .SRCINFO
id: get_pkgbuild
run: |
curl -o PKGBUILD https://raw.githubusercontent.com/animo/siera-cli/main/pkg/PKGBUILD
curl -o .SRCINFO https://raw.githubusercontent.com/animo/siera-cli/main/pkg/.SRCINFO
- name: Gather data and rewrite PKGBUILD file
id: gather_data_and_rewrite
run: |
Expand All @@ -26,8 +32,10 @@ jobs:
VERSION=${VERSION:1}
# replace package version in PKGBUILD
sed -i '3s|.*|pkgver\='"$VERSION"'|' PKGBUILD
# replace package version in .SRCINFO
sed -i '3s|.*| pkgver = '$VERSION'|' .SRCINFO
# update package sums
updpkgsums
# generate .SRCINFO
makepkg --printsrcinfo > .SRCINFO
- name: commit to AUR
id: commit_aur
env:
Expand Down
12 changes: 0 additions & 12 deletions pkg/.SRCINFO

This file was deleted.

6 changes: 3 additions & 3 deletions pkg/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# Maintainer: Animo Solutions [email protected]
# Contributor: iamawacko <[email protected]>
pkgname="siera"
pkgver=0.2.0
pkgrel="1"
pkgver=0.0.0
pkgrel="2"
pkgdesc="A CLI tool for Hyperledger Aries written in Rust"
arch=(any)
license=('MIT')
source=("https://github.com/animo/siera-cli/archive/refs/tags/v$pkgver.tar.gz")
depends=('cargo')
provides=('siera')
sha256sums=('d4315c22d10219771d40be80c463d66eaa6bbc00e165d7302ac1fb96a38b5847')
sha256sums=()

prepare() {
cd "siera-cli-$pkgver"
Expand Down

0 comments on commit 0323495

Please sign in to comment.