File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1717
1818 - name : Update PKGBUILD
1919 run : |
20- sed -i "s/tag=/tag=${GITHUB_REF##*/}/g" build/PKGBUILD
21- sed -i "s/sha256sums=/sha256sums=('$(sha256sum ${GITHUB_REF##*/}.tar.gz | awk '{print $1;}')')/g" build/PKGBUILD
20+ tag=${GITHUB_REF##*/}
21+ hash=$(sha256sum $tag.tar.gz | awk '{print $1;}')
22+ sed -i "s/tag=/tag=$tag/g" build/PKGBUILD
23+ sed -i "s/sha256sums=/sha256sums=('$hash')/g" build/PKGBUILD
2224
2325 - name : Publish AUR package
2426 uses : KSXGitHub/github-actions-deploy-aur@v2.2.0
Original file line number Diff line number Diff line change 11# Maintainer: Karl Wikström <boogrocha@sidus.io>
22# Maintainer: William Leven <boogrocha@sidus.io>
33
4+ # _tag and sha256 is populated by the pipeline
45_tag=
56pkgname=boogrocha
67pkgver=$_tag
@@ -21,6 +22,7 @@ _src="BooGroCha-${pkgver:1}"
2122build () {
2223 cd $_src
2324 # Build as per Go package guidelines
25+ # https://wiki.archlinux.org/index.php/Go_package_guidelines#Flags_and_build_options
2426 go build \
2527 -trimpath \
2628 -buildmode=pie \
You can’t perform that action at this time.
0 commit comments