Skip to content

Commit

Permalink
Auto build + Archlinux package
Browse files Browse the repository at this point in the history
  • Loading branch information
oxodao committed Feb 5, 2022
1 parent 6ae4893 commit 17bac05
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: "Build & publish metaprint release"

on:
create:
tags:
- v*

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.17.5'
- run: GOOS=linux GOARCH=amd64 go build -o metaprint-${GITHUB_REF##*/}-x86_64 .
- uses: ncipollo/release-action@v1
with:
artifacts: "metaprint-*-*-*"
token: ${{ secrets.GITHUB_TOKEN }}
Empty file added packaging/arch-git/.gitkeep
Empty file.
17 changes: 17 additions & 0 deletions packaging/arch/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Maintainer: oxodao <oxodao@gmail.com>
pkgname=metaprint
pkgver=0.4
pkgrel=1
pkgdesc="Give up on your random scripts ! Easily render any computer infos for stuff like i3, tmux, ..."
arch=('x86_64')
url="https://github.com/oxodao/metaprint"
license=('GPL')
optdepends=()
provides=("$pkgname")
conflicts=("$pkgname")
source=("https://github.com/oxodao/$pkgname/releases/download/v$pkgver/$pkgname-v$pkgver-linux-$CARCH")
md5sums=('SKIP')

package() {
install -Dm 777 "$pkgname-v$pkgver-linux-$CARCH" "${pkgdir}/usr/local/bin/metaprint"
}
Empty file added packaging/debian/.gitkeep
Empty file.

0 comments on commit 17bac05

Please sign in to comment.