mirror of
https://github.com/restic/rest-server.git
synced 2025-10-19 23:53:20 +00:00
Reformat Release.md
This commit is contained in:
parent
6e44dd8eae
commit
fa516da2c4
1 changed files with 15 additions and 16 deletions
31
Release.md
31
Release.md
|
@ -1,33 +1,32 @@
|
||||||
1. Export `$VERSION`:
|
1. Export `$VERSION`:
|
||||||
|
|
||||||
export VERSION=0.10.0
|
export VERSION=0.10.0
|
||||||
|
|
||||||
2. Add new version to file VERSION:
|
2. Add new version to file VERSION:
|
||||||
|
|
||||||
echo "${VERSION}" | tee VERSION && git commit -m "Update VERSION file for ${VERSION}" VERSION
|
echo "${VERSION}" | tee VERSION && git commit -m "Update VERSION file for ${VERSION}" VERSION
|
||||||
|
|
||||||
3. Move changelog files for `calens`:
|
3. Move changelog files for `calens`:
|
||||||
|
|
||||||
mv changelog/unreleased "changelog/${VERSION}_$(date +%Y-%m-%d)"
|
mv changelog/unreleased "changelog/${VERSION}_$(date +%Y-%m-%d)"
|
||||||
git add "changelog/${VERSION}"*
|
git add "changelog/${VERSION}"*
|
||||||
git rm -r changelog/unreleased
|
git rm -r changelog/unreleased
|
||||||
git commit -m "Move changelog files for ${VERSION}" changelog/{unreleased,"${VERSION}"*}
|
git commit -m "Move changelog files for ${VERSION}" changelog/{unreleased,"${VERSION}"*}
|
||||||
|
|
||||||
4. Generate changelog:
|
4. Generate changelog:
|
||||||
|
|
||||||
calens > CHANGELOG.md
|
calens > CHANGELOG.md
|
||||||
git add CHANGELOG.md
|
git add CHANGELOG.md
|
||||||
git commit -m "Generate CHANGELOG.md for ${VERSION}" CHANGELOG.md
|
git commit -m "Generate CHANGELOG.md for ${VERSION}" CHANGELOG.md
|
||||||
|
|
||||||
5. Tag new version and push the tag:
|
5. Tag new version and push the tag:
|
||||||
|
|
||||||
git tag -a -s -m "v${VERSION}" "v${VERSION}"
|
git tag -a -s -m "v${VERSION}" "v${VERSION}"
|
||||||
git push --tags
|
git push --tags
|
||||||
|
|
||||||
6. Build the project (use `--skip-publish` for testing):
|
6. Build the project (use `--skip-publish` for testing):
|
||||||
|
|
||||||
goreleaser \
|
goreleaser \
|
||||||
release \
|
release \
|
||||||
--config ../.goreleaser.yml \
|
--config ../.goreleaser.yml \
|
||||||
--release-notes <(calens --template changelog/CHANGELOG-GitHub.tmpl --version "${VERSION}")
|
--release-notes <(calens --template changelog/CHANGELOG-GitHub.tmpl --version "${VERSION}")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue