Compare commits
7 Commits
4b382bddd9
...
v0.3.0
Author | SHA1 | Date | |
---|---|---|---|
37bd69b675 | |||
14bca64657 | |||
d9baf44199 | |||
6de94d038f | |||
a04d1db077 | |||
62942540b5 | |||
904a579994 |
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -19,9 +19,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
- run: git fetch --force --tags
|
- run: git fetch --force --tags
|
||||||
- uses: actions/setup-go@v3
|
- uses: actions/setup-go@v4
|
||||||
with:
|
with:
|
||||||
go-version: '==1.19.5'
|
go-version: '1.20'
|
||||||
cache: true
|
cache: true
|
||||||
# More assembly might be required: Docker logins, GPG, etc. It all depends
|
# More assembly might be required: Docker logins, GPG, etc. It all depends
|
||||||
# on your needs.
|
# on your needs.
|
||||||
|
@ -5,6 +5,7 @@ before:
|
|||||||
builds:
|
builds:
|
||||||
- env:
|
- env:
|
||||||
- CGO_ENABLED=0
|
- CGO_ENABLED=0
|
||||||
|
- GOPROXY=https://goproxy.io
|
||||||
goos:
|
goos:
|
||||||
- freebsd
|
- freebsd
|
||||||
- linux
|
- linux
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
steps:
|
pipeline:
|
||||||
release:
|
release:
|
||||||
image: goreleaser/goreleaser
|
image: goreleaser/goreleaser
|
||||||
commands:
|
commands:
|
||||||
- goreleaser release -f .goreleaser/vern.yml --release-notes=".changes/$(go run backy.go version -V).md"
|
- goreleaser release -f .goreleaser/gitea.yml --release-notes=".changes/$(go run backy.go version -V).md"
|
||||||
secrets: [ gitea_token ]
|
secrets: [ gitea_token ]
|
||||||
when:
|
when:
|
||||||
event: tag
|
event: tag
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
steps:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: klakegg/hugo:ext-debian-ci
|
image: klakegg/hugo:ext-debian-ci
|
||||||
commands:
|
commands:
|
||||||
|
@ -21,7 +21,7 @@ var (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func init() {
|
func init() {
|
||||||
versionCmd.PersistentFlags().BoolVarP(&numOnly, "num", "n", true, "Output the version number only.")
|
versionCmd.PersistentFlags().BoolVarP(&numOnly, "num", "n", false, "Output the version number only.")
|
||||||
versionCmd.PersistentFlags().BoolVarP(&vPre, "vpre", "V", false, "Output the version with v prefixed.")
|
versionCmd.PersistentFlags().BoolVarP(&vPre, "vpre", "V", false, "Output the version with v prefixed.")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,5 +6,4 @@ weight: 5
|
|||||||
The repo mirrors are:
|
The repo mirrors are:
|
||||||
|
|
||||||
* [https://git.andrewnw.xyz/CyberShell/backy](https://git.andrewnw.xyz/CyberShell/backy)
|
* [https://git.andrewnw.xyz/CyberShell/backy](https://git.andrewnw.xyz/CyberShell/backy)
|
||||||
* [https://git.vern.cc/cybershell/backy](https://git.vern.cc/cybershell/backy)
|
|
||||||
* [https://github.com/CybersShell/backy](https://github.com/CybersShell/backy)
|
* [https://github.com/CybersShell/backy](https://github.com/CybersShell/backy)
|
4
release
4
release
@ -1,6 +1,6 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
export GORELEASER_CURRENT_TAG="$(go run backy.go version -V)"
|
# export GORELEASER_CURRENT_TAG="$(go run backy.go version -V)"
|
||||||
git tag "$(go run backy.go version -V)"
|
git tag "$(go run backy.go version -V)"
|
||||||
git push all
|
git push all
|
||||||
git push all --tags
|
git push all --tags
|
||||||
goreleaser release -f .goreleaser/gitea.yml --clean --release-notes=".changes/$(go run backy.go version -V).md"
|
# goreleaser release -f .goreleaser/gitea.yml --clean --release-notes=".changes/$(go run backy.go version -V).md"
|
Reference in New Issue
Block a user