mirror of
https://github.com/grdl/git-get.git
synced 2026-02-04 16:49:43 +00:00
Update release process and docs after adding git-get to homebrew-core
This commit is contained in:
@@ -11,7 +11,7 @@ builds:
|
|||||||
main: ./cmd/
|
main: ./cmd/
|
||||||
binary: git-get
|
binary: git-get
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w
|
- -s -w
|
||||||
- -X github.com/grdl/git-get/pkg/cfg.version={{.Version}}
|
- -X github.com/grdl/git-get/pkg/cfg.version={{.Version}}
|
||||||
- -X github.com/grdl/git-get/pkg/cfg.commit={{.Commit}}
|
- -X github.com/grdl/git-get/pkg/cfg.commit={{.Commit}}
|
||||||
goos:
|
goos:
|
||||||
@@ -27,7 +27,7 @@ builds:
|
|||||||
main: ./cmd/
|
main: ./cmd/
|
||||||
binary: git-get
|
binary: git-get
|
||||||
ldflags:
|
ldflags:
|
||||||
- -s -w
|
- -s -w
|
||||||
- -X github.com/grdl/git-get/pkg/cfg.version={{.Version}}
|
- -X github.com/grdl/git-get/pkg/cfg.version={{.Version}}
|
||||||
- -X github.com/grdl/git-get/pkg/cfg.commit={{.Commit}}
|
- -X github.com/grdl/git-get/pkg/cfg.commit={{.Commit}}
|
||||||
goos:
|
goos:
|
||||||
@@ -47,7 +47,7 @@ archives:
|
|||||||
format_overrides:
|
format_overrides:
|
||||||
- goos: windows
|
- goos: windows
|
||||||
formats: [zip]
|
formats: [zip]
|
||||||
# Don't include any additional files into the archives (such as README, CHANGELOG etc).
|
# Don't include any additional files into the archives (such as README, CHANGELOG etc).
|
||||||
files:
|
files:
|
||||||
- none*
|
- none*
|
||||||
- id: macos-archive
|
- id: macos-archive
|
||||||
@@ -57,10 +57,10 @@ archives:
|
|||||||
formats:
|
formats:
|
||||||
- tar.gz
|
- tar.gz
|
||||||
files:
|
files:
|
||||||
- none*
|
- none*
|
||||||
|
|
||||||
checksum:
|
checksum:
|
||||||
name_template: 'checksums.txt'
|
name_template: "checksums.txt"
|
||||||
|
|
||||||
changelog:
|
changelog:
|
||||||
disable: true # Changelogs are crafted manually
|
disable: true # Changelogs are crafted manually
|
||||||
@@ -70,29 +70,6 @@ release:
|
|||||||
owner: grdl
|
owner: grdl
|
||||||
name: git-get
|
name: git-get
|
||||||
|
|
||||||
brews:
|
|
||||||
- name: git-get
|
|
||||||
ids:
|
|
||||||
- macos-archive
|
|
||||||
repository:
|
|
||||||
owner: grdl
|
|
||||||
name: homebrew-tap
|
|
||||||
branch: master
|
|
||||||
directory: Formula
|
|
||||||
commit_author:
|
|
||||||
name: Grzegorz Dlugoszewski
|
|
||||||
email: git-get@grdl.dev
|
|
||||||
homepage: https://github.com/grdl/git-get/
|
|
||||||
description: Better way to clone, organize and manage multiple git repositories
|
|
||||||
license: MIT
|
|
||||||
install: |
|
|
||||||
bin.install "git-get"
|
|
||||||
bin.install_symlink "git-get" => "git-list"
|
|
||||||
man1.install "docs/git-get.1"
|
|
||||||
test: |
|
|
||||||
system "#{bin}/git-get", "--version"
|
|
||||||
system "#{bin}/git-list", "--version"
|
|
||||||
|
|
||||||
nfpms:
|
nfpms:
|
||||||
- id: packages
|
- id: packages
|
||||||
package_name: git-get
|
package_name: git-get
|
||||||
@@ -130,10 +107,11 @@ scoops:
|
|||||||
homepage: "https://github.com/grdl/git-get"
|
homepage: "https://github.com/grdl/git-get"
|
||||||
description: "Better way to clone, organize and manage multiple git repositories"
|
description: "Better way to clone, organize and manage multiple git repositories"
|
||||||
license: MIT
|
license: MIT
|
||||||
post_install: [
|
post_install:
|
||||||
"New-Item -ItemType HardLink -Path \"$dir\\git-list.exe\" -Target \"$dir\\git-get.exe\" -Force | Out-Null",
|
[
|
||||||
"scoop shim add git-list \"$dir\\git-list.exe\""
|
"New-Item -ItemType HardLink -Path \"$dir\\git-list.exe\" -Target \"$dir\\git-get.exe\" -Force | Out-Null",
|
||||||
]
|
"scoop shim add git-list \"$dir\\git-list.exe\"",
|
||||||
|
]
|
||||||
|
|
||||||
# goreleaser doesn't support pre/post uninstall scripts yet
|
# goreleaser doesn't support pre/post uninstall scripts yet
|
||||||
# https://goreleaser.com/customization/scoop/
|
# https://goreleaser.com/customization/scoop/
|
||||||
|
|||||||
31
README.md
31
README.md
@@ -66,7 +66,7 @@ It provides two commands through a single binary:
|
|||||||
|
|
||||||
**Option 1: Homebrew (Recommended)**
|
**Option 1: Homebrew (Recommended)**
|
||||||
```bash
|
```bash
|
||||||
brew install grdl/tap/git-get
|
brew install git-get
|
||||||
```
|
```
|
||||||
*This automatically installs both `git-get` and `git-list` commands.*
|
*This automatically installs both `git-get` and `git-list` commands.*
|
||||||
|
|
||||||
@@ -106,7 +106,7 @@ sudo ln -sf /usr/local/bin/git-get /usr/local/bin/git-list
|
|||||||
|
|
||||||
**Option 3: Homebrew on Linux**
|
**Option 3: Homebrew on Linux**
|
||||||
```bash
|
```bash
|
||||||
brew install grdl/tap/git-get
|
brew install git-get
|
||||||
```
|
```
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
@@ -385,6 +385,33 @@ golangci-lint run -v
|
|||||||
golangci-lint run --fix
|
golangci-lint run --fix
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Releasing a New Version
|
||||||
|
|
||||||
|
For maintainers releasing a new version:
|
||||||
|
|
||||||
|
1. **Create and push a new git tag:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
git tag v0.7.0
|
||||||
|
git push origin v0.7.0
|
||||||
|
```
|
||||||
|
|
||||||
|
2. **GitHub Actions will automatically:**
|
||||||
|
- Build binaries for all platforms
|
||||||
|
- Create a GitHub release with assets
|
||||||
|
- Update the Scoop package
|
||||||
|
|
||||||
|
3. **Update Homebrew-core formula:**
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# Replace with your actual version
|
||||||
|
brew bump-formula-pr --tag=v0.7.0 git-get
|
||||||
|
```
|
||||||
|
|
||||||
|
This command automatically downloads the new release, calculates checksums, updates the formula, and creates a PR to homebrew-core.
|
||||||
|
|
||||||
|
**Note:** Since git-get is in homebrew-core, the community or Homebrew's automated systems may also update the formula when new releases are detected.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
|
This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details.
|
||||||
|
|||||||
Reference in New Issue
Block a user