Skip to content

Commit

Permalink
feat(goreleaser): Add AUR package
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Aug 16, 2023
1 parent 465df96 commit cfea76b
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GORELEASER_GITHUB_TOKEN }}
FURY_TOKEN: ${{ secrets.FURY_TOKEN }}
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
- uses: actions/upload-artifact@v3
with:
name: dist
Expand Down
22 changes: 22 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,25 @@ publishers:
- packages
dir: "{{ dir .ArtifactPath }}"
cmd: curl -sf -Fpackage=@{{ .ArtifactName }} https://{{ .Env.FURY_TOKEN }}@push.fury.io/clevyr/
aurs:
- name: "{{ .ProjectName }}-bin"
homepage: https://github.com/clevyr/yampl
description: Yaml templating via line-comments
maintainers:
- Gabe Cook <[email protected]>
license: GPL-3.0
private_key: '{{ .Env.AUR_SSH_KEY }}'
git_url: ssh://[email protected]/{{ .ProjectName }}-bin.git
skip_upload: auto
package: |-
# bin
install -Dm755 "./{{ .ProjectName }}" "${pkgdir}/usr/bin/{{ .ProjectName }}"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/{{ .ProjectName }}/LICENSE"
# completion
install -Dm644 "./completions/{{ .ProjectName }}.bash" "${pkgdir}/usr/share/bash-completion/completions/{{ .ProjectName }}"
install -Dm644 "./completions/{{ .ProjectName }}.zsh" "${pkgdir}/usr/share/zsh/site-functions/_{{ .ProjectName }}"
install -Dm644 "./completions/{{ .ProjectName }}.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/{{ .ProjectName }}.fish"
commit_author:
name: goreleaserbot
email: [email protected]
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,15 @@ Yampl is available in brew or as a Docker container.
```
</details>
### AUR (Arch Linux)
<details>
<summary>Click to expand</summary>
Install [yampl-bin](https://aur.archlinux.org/packages/yampl-bin) with your [AUR helper](https://wiki.archlinux.org/index.php/AUR_helpers) of choice.
</details>
## Usage
[View the generated docs](docs/yampl.md) for flag and command reference.
Expand Down

0 comments on commit cfea76b

Please sign in to comment.