Skip to content

Commit

Permalink
add AUR to goreleaser
Browse files Browse the repository at this point in the history
  • Loading branch information
atomicptr committed Jul 16, 2024
1 parent d1e1317 commit 949bba7
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 13 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Install Dependencies
run: |
go install github.com/mattn/goveralls@latest
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.58.2
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin v1.59.1
- name: Build & Test
run: |
make build
Expand All @@ -47,7 +47,8 @@ jobs:
with:
distribution: goreleaser
version: latest
args: release --rm-dist
args: release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
AUR_KEY: ${{ secrets.AUR_KEY }}
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
45 changes: 34 additions & 11 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
version: 2

builds:
- main: ./cmd/crab/main.go
ldflags:
Expand All @@ -24,33 +26,54 @@ changelog:
exclude:
- '^docs:'
- '^test:'

# Release

## Github Releases
release:
github:
owner: atomicptr
name: crab
draft: false


## AUR
aurs:
- name: crab-bin
homepage: &homepage "https://github.com/atomicptr/crab"
description: &description |
A versatile tool to crawl dozens of URLs from a given source, like a sitemap or an URL list.
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://[email protected]/crab-bin.git"
provides:
- tmplr
commit_author:
name: Christopher Kaster
email: [email protected]
maintainers: &maintainers
- &maintainer "Christopher Kaster <[email protected]>"
license: &license MIT

## Homebrew
brews:
- name: crab
repository:
owner: atomicptr
name: homebrew-tools
directory: Formula
homepage: "https://github.com/atomicptr/crab"
description: |
A versatile tool to crawl dozens of URLs from a given source, like a sitemap or an URL list.
homepage: *homepage
description: *description

## Scoop
scoops:
- name: crab
repository:
owner: atomicptr
name: scoop-bucket
homepage: "https://github.com/atomicptr/crab"
description: |
A versatile tool to crawl dozens of URLs from a given source, like a sitemap or an URL list.
license: MIT
homepage: *homepage
description: *description
license: *license

## Docker
dockers:
- dockerfile: Dockerfile
Expand All @@ -59,14 +82,14 @@ dockers:
- "atomicptr/crab:v{{.Major}}"
- "atomicptr/crab:v{{.Major}}.{{.Minor}}"
- "atomicptr/crab:{{.Tag}}"

## NFPM (deb and rpm)
nfpms:
- package_name: crab
vendor: atomicptr
maintainer: "Christopher Kaster <[email protected]>"
homepage: "https://github.com/atomicptr/crab"
description: |
A versatile tool to crawl dozens of URLs from a given source, like a sitemap or an URL list.
maintainer: *maintainer
homepage: *homepage
description: *description
license: MIT
formats:
- deb
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@ $ docker run --rm atomicptr/crab --help
$ docker run --rm atomicptr/crab crawl:sitemap https://domain.com/sitemap.xml
```

### Arch Linux

[AUR](https://aur.archlinux.org/packages/crab-bin)

### Homebrew

```bash
Expand Down

0 comments on commit 949bba7

Please sign in to comment.