Skip to content

Commit 949bba7

Browse files
committed
add AUR to goreleaser
1 parent d1e1317 commit 949bba7

File tree

3 files changed

+41
-13
lines changed

3 files changed

+41
-13
lines changed

.github/workflows/build.yml

+3-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install Dependencies
2626
run: |
2727
go install github.com/mattn/goveralls@latest
28-
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.2
28+
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1
2929
- name: Build & Test
3030
run: |
3131
make build
@@ -47,7 +47,8 @@ jobs:
4747
with:
4848
distribution: goreleaser
4949
version: latest
50-
args: release --rm-dist
50+
args: release
5151
env:
5252
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
53+
AUR_KEY: ${{ secrets.AUR_KEY }}
5354
if: ${{ startsWith(github.ref, 'refs/tags/v') }}

.goreleaser.yml

+34-11
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
version: 2
2+
13
builds:
24
- main: ./cmd/crab/main.go
35
ldflags:
@@ -24,33 +26,54 @@ changelog:
2426
exclude:
2527
- '^docs:'
2628
- '^test:'
29+
2730
# Release
31+
2832
## Github Releases
2933
release:
3034
github:
3135
owner: atomicptr
3236
name: crab
3337
draft: false
38+
39+
40+
## AUR
41+
aurs:
42+
- name: crab-bin
43+
homepage: &homepage "https://github.com/atomicptr/crab"
44+
description: &description |
45+
A versatile tool to crawl dozens of URLs from a given source, like a sitemap or an URL list.
46+
private_key: "{{ .Env.AUR_KEY }}"
47+
git_url: "ssh://aur@aur.archlinux.org/crab-bin.git"
48+
provides:
49+
- tmplr
50+
commit_author:
51+
name: Christopher Kaster
52+
email: me@atomicptr.de
53+
maintainers: &maintainers
54+
- &maintainer "Christopher Kaster <me@atomicptr.de>"
55+
license: &license MIT
56+
3457
## Homebrew
3558
brews:
3659
- name: crab
3760
repository:
3861
owner: atomicptr
3962
name: homebrew-tools
4063
directory: Formula
41-
homepage: "https://github.com/atomicptr/crab"
42-
description: |
43-
A versatile tool to crawl dozens of URLs from a given source, like a sitemap or an URL list.
64+
homepage: *homepage
65+
description: *description
66+
4467
## Scoop
4568
scoops:
4669
- name: crab
4770
repository:
4871
owner: atomicptr
4972
name: scoop-bucket
50-
homepage: "https://github.com/atomicptr/crab"
51-
description: |
52-
A versatile tool to crawl dozens of URLs from a given source, like a sitemap or an URL list.
53-
license: MIT
73+
homepage: *homepage
74+
description: *description
75+
license: *license
76+
5477
## Docker
5578
dockers:
5679
- dockerfile: Dockerfile
@@ -59,14 +82,14 @@ dockers:
5982
- "atomicptr/crab:v{{.Major}}"
6083
- "atomicptr/crab:v{{.Major}}.{{.Minor}}"
6184
- "atomicptr/crab:{{.Tag}}"
85+
6286
## NFPM (deb and rpm)
6387
nfpms:
6488
- package_name: crab
6589
vendor: atomicptr
66-
maintainer: "Christopher Kaster <me@atomicptr.de>"
67-
homepage: "https://github.com/atomicptr/crab"
68-
description: |
69-
A versatile tool to crawl dozens of URLs from a given source, like a sitemap or an URL list.
90+
maintainer: *maintainer
91+
homepage: *homepage
92+
description: *description
7093
license: MIT
7194
formats:
7295
- deb

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,10 @@ $ docker run --rm atomicptr/crab --help
3939
$ docker run --rm atomicptr/crab crawl:sitemap https://domain.com/sitemap.xml
4040
```
4141

42+
### Arch Linux
43+
44+
[AUR](https://aur.archlinux.org/packages/crab-bin)
45+
4246
### Homebrew
4347

4448
```bash

0 commit comments

Comments
 (0)