Compare commits

..

No commits in common. "25f237f73a0b0cb94f3f741a9e862247b213e536" and "63327bb3ead61df4ae08aaa0e6e6cb14fe8a5f35" have entirely different histories.

2 changed files with 6 additions and 21 deletions

View file

@ -4,6 +4,7 @@ version: 2
before: before:
hooks: hooks:
- rm -fr ./dist
- go mod tidy - go mod tidy
builds: builds:

View file

@ -12,37 +12,21 @@ vars:
tasks: tasks:
release:tag: release:tag:
desc: Create a new tag
cmds: cmds:
- git tag v{{.RELEASE}} - git tag v{{.RELEASE}}
- git push --tags
release:file: release:file:
desc: Update version.txt
generates:
- version.txt
cmds: cmds:
- echo {{.RELEASE}} >{{.VERSIONFILE}} - echo {{.RELEASE}} >{{.VERSIONFILE}}
- git add {{.VERSIONFILE}} - git add {{.VERSIONFILE}}
- git commit -m "{{.COMMITMSG}}" - git commit -m "{{.COMMITMSG}}"
- git push
release:goreleaser: release:push:
desc: Create a new release with goreleaser aliases: [dorelease]
cmds:
- goreleaser release --clean
dorelease:
desc: Do all release steps
prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}? prompt: Create new release v{{.RELEASE}} from {{.COMMIT}}@{{.BRANCH}}?
preconditions:
- sh: test "{{.BRANCH}}" == "main"
cmds: cmds:
- task: release:file - task: release:file
- task: release:tag - task: release:tag
- task: release:goreleaser - git push
- git push --tags
snapshot: - goreleaser release
desc: Create a local snapshot release
cmds:
- goreleaser release --clean --snapshot