Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,21 @@ jobs:
curl https://mise.run | sh
mise install

- name: 🔑 Generate Homebrew Tap Token
id: homebrew-tap-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ secrets.PNX_HOMEBREW_TAP_CLIENT_ID }}
private-key: ${{ secrets.PNX_HOMEBREW_TAP_PRIVATE_KEY }}
owner: previousnext
repositories: homebrew-tap

- name: ☁️ Release
run: |
mise release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ steps.homebrew-tap-token.outputs.token }}

- name: ⬆️ Upload debs
uses: actions/upload-artifact@v7
Expand Down
21 changes: 21 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,27 @@ archives:
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ if eq .Os "darwin" }}macOS{{ else }}{{ .Os }}{{ end }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
wrap_in_directory: true
formats: tar.gz
files:
- src: .goreleaser-tmp/completions/tl.bash
dst: share/bash-completion/completions/tl
- src: .goreleaser-tmp/manpages/*.gz
dst: share/man/man1/

homebrew_casks:
- ids: [ nix ]
name: tl
binary: tl
manpages:
- share/man/man1/tl.1.gz
completions:
bash: share/bash-completion/completions/tl
repository:
owner: previousnext
name: homebrew-tap
token: "{{ .Env.HOMEBREW_TAP_GITHUB_TOKEN }}"
directory: Casks
homepage: https://www.previousnext.com.au
description: Command line time logger for Jira

changelog:
use: github-native
Expand Down