Skip to content

Commit f379e81

Browse files
committed
feat(release): add aur publishing in goreleaser config
1 parent 113714f commit f379e81

File tree

4 files changed

+20
-2
lines changed

4 files changed

+20
-2
lines changed

.github/workflows/go-release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
with:
2222
go-version: ">=1.21.0"
2323
cache: true
24+
- name: Echo envs
25+
run: echo "AUR_KEY; ${{ secrets.AUR_KEY }}"
2426
- name: Run GoReleaser
2527
uses: goreleaser/goreleaser-action@v6
2628
with:
@@ -30,3 +32,4 @@ jobs:
3032
env:
3133
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3234
TAP_GITHUB_TOKEN: ${{ secrets.TAP_GITHUB_TOKEN }}
35+
AUR_KEY: ${{ secrets.AUR_KEY }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,4 @@ Thumbs.db
3939
*.tar.gz
4040
.gomodcache
4141
.gocache
42+
private_key

.goreleaser.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ release:
4747
go install github.com/xdagiz/xytz@latest
4848
4949
# Arch Linux (AUR)
50-
yay -S xytz-bin
50+
yay -S xytz
5151
```
5252
5353
changelog:
@@ -88,3 +88,17 @@ homebrew_casks:
8888
- dependencies:
8989
- formula: yt-dlp
9090
- formula: ffmpeg
91+
aurs:
92+
- name: xytz
93+
git_url: "ssh://aur@aur.archlinux.org/xytz.git"
94+
homepage: "https://github.com/xdagiz/xytz"
95+
description: "a beautiful TUI YouTube Downloader"
96+
private_key: "{{ .Env.AUR_KEY }}"
97+
maintainers:
98+
- "Dagmawi Ali <xdagizjr2112 at gmail dot com>"
99+
contributors:
100+
- "Dagmawi Ali <xdagizjr2112 at gmail dot com>"
101+
depends:
102+
- yt-dlp
103+
- ffmpeg
104+
license: MIT

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ go install github.com/xdagiz/xytz@latest
6262
If you're using an Arch-based distribution, you can install xytz from the AUR:
6363

6464
```bash
65-
yay -S xytz-bin
65+
yay -S xytz
6666
```
6767

6868
### 4. Build from Source

0 commit comments

Comments
 (0)