diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2fe4813..a710261 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,6 +32,7 @@ jobs: args: release --clean env: GITHUB_TOKEN: ${{ secrets.GORELEASER_TOKEN }} + AUR_KEY: ${{ secrets.AUR_KEY }} build-and-push-image: runs-on: ubuntu-latest diff --git a/.goreleaser.yml b/.goreleaser.yml index 6667311..fb3729a 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -57,3 +57,26 @@ brews: homepage: "https://github.com/brittonhayes/pillager" description: "Pillage filesystems for sensitive information" license: "MIT" + +aurs: + - name: pillager-bin + homepage: "https://github.com/brittonhayes/pillager" + description: "Pillage filesystems for sensitive information" + maintainers: + - "brittonhayes " + license: "MIT" + private_key: "{{ .Env.AUR_KEY }}" + git_url: "ssh://aur@aur.archlinux.org/pillager-bin.git" + provides: + - pillager + package: |- + # bin + install -Dm755 "./pillager" "${pkgdir}/usr/bin/pillager" + + # license + install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/pillager/LICENSE" + commit_author: + name: "brittonhayes" + email: "brittonhayes@users.noreply.github.com" + commit_msg_template: "Update to {{ .Tag }}" + goamd64: v1