Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Version auto-updating. Issue #30 #43

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

OrlovEvgeny
Copy link
Contributor

@OrlovEvgeny OrlovEvgeny commented Jul 20, 2021

Resolve issue #30
Add ldflags for sets application version (https://goreleaser.com/customization/build/)

example for dev environment:

$ goreleaser release --snapshot --skip-publish --rm-dist
$ ./spotify-cli --version

spotify version v1.9.2-SNAPSHOT-0ebcff2
commit: 0ebcff245e7d750ead4a11e0b1ce50f9c9beb40a
built at: 2021-07-20T20:11:53Z

How to use. (example: https://goreleaser.com/quick-start/)
example:

  • just create new tag: git tag -a v1.9.3 -m "new best features"
  • then push: git push origin v1.9.3
    And goreleaser auto sets version for app.

@OrlovEvgeny OrlovEvgeny changed the title Version auto-updating #30 Version auto-updating Jul 20, 2021
@OrlovEvgeny OrlovEvgeny changed the title Version auto-updating Version auto-updating. Issue #30 Jul 20, 2021
@brianstrauch
Copy link
Owner

Thank you, this is awesome!

@brianstrauch brianstrauch merged commit 9b9a66f into brianstrauch:master Jul 21, 2021
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants