mirror of
https://github.com/itchyny/mmv.git
synced 2025-12-26 22:24:58 +08:00
switch the default branch to main
This commit is contained in:
parent
f1bebac133
commit
e392ca34a8
3 changed files with 5 additions and 5 deletions
2
.github/workflows/ci.yaml
vendored
2
.github/workflows/ci.yaml
vendored
|
|
@ -3,7 +3,7 @@ name: CI
|
|||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
|
|
|
|||
6
Makefile
6
Makefile
|
|
@ -60,13 +60,13 @@ bump: $(GOBIN)/gobump
|
|||
ifneq ($(shell git status --porcelain),)
|
||||
$(error git workspace is dirty)
|
||||
endif
|
||||
ifneq ($(shell git rev-parse --abbrev-ref HEAD),master)
|
||||
$(error current branch is not master)
|
||||
ifneq ($(shell git rev-parse --abbrev-ref HEAD),main)
|
||||
$(error current branch is not main)
|
||||
endif
|
||||
@gobump up -w "$(VERSION_PATH)"
|
||||
git commit -am "bump up version to $(VERSION)"
|
||||
git tag "v$(VERSION)"
|
||||
git push origin master
|
||||
git push origin main
|
||||
git push origin "refs/tags/v$(VERSION)"
|
||||
|
||||
.PHONY: upload
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
# mmv
|
||||
[](https://github.com/itchyny/mmv/actions)
|
||||
[](https://goreportcard.com/report/github.com/itchyny/mmv)
|
||||
[](https://github.com/itchyny/mmv/blob/master/LICENSE)
|
||||
[](https://github.com/itchyny/mmv/blob/main/LICENSE)
|
||||
[](https://github.com/itchyny/mmv/releases)
|
||||
[](https://pkg.go.dev/github.com/itchyny/mmv)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue