mirror of
https://github.com/yarlson/lnk.git
synced 2025-09-26 21:18:58 +02:00
Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
|
13657a8142 |
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@@ -32,6 +32,4 @@ jobs:
|
|||||||
version: latest
|
version: latest
|
||||||
args: release --clean
|
args: release --clean
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
||||||
# If you have a personal access token for cross-repo access, use it instead:
|
|
||||||
# GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_TOKEN }}
|
|
||||||
|
19
RELEASE.md
19
RELEASE.md
@@ -9,6 +9,25 @@ This document describes how to create releases for the lnk project using GoRelea
|
|||||||
- GoReleaser is configured in `.goreleaser.yml`
|
- GoReleaser is configured in `.goreleaser.yml`
|
||||||
- GitHub Actions will handle the release process
|
- GitHub Actions will handle the release process
|
||||||
- Access to the [homebrew-lnk](https://github.com/yarlson/homebrew-lnk) tap repository
|
- Access to the [homebrew-lnk](https://github.com/yarlson/homebrew-lnk) tap repository
|
||||||
|
- **Personal Access Token** set up as `HOMEBREW_TAP_TOKEN` secret (see Setup section)
|
||||||
|
|
||||||
|
## Setup (One-time)
|
||||||
|
|
||||||
|
### GitHub Personal Access Token
|
||||||
|
|
||||||
|
For GoReleaser to update the Homebrew formula, you need a Personal Access Token:
|
||||||
|
|
||||||
|
1. Go to GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)
|
||||||
|
2. Click "Generate new token" → "Generate new token (classic)"
|
||||||
|
3. Name: "GoReleaser Homebrew Access"
|
||||||
|
4. Scopes: Select `repo` (Full control of private repositories)
|
||||||
|
5. Generate and copy the token
|
||||||
|
6. In your `yarlson/lnk` repository:
|
||||||
|
- Go to Settings → Secrets and variables → Actions
|
||||||
|
- Add new repository secret: `HOMEBREW_TAP_TOKEN`
|
||||||
|
- Paste the token as the value
|
||||||
|
|
||||||
|
This allows GoReleaser to automatically update the Homebrew formula in [homebrew-lnk](https://github.com/yarlson/homebrew-lnk).
|
||||||
|
|
||||||
## Creating a Release
|
## Creating a Release
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user