mirror of
https://github.com/restic/rest-server.git
synced 2025-12-07 01:26:18 -08:00
Fix release documentation
This commit is contained in:
@@ -11,8 +11,12 @@
|
|||||||
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)"
|
||||||
|
rm -f "changelog/${VERSION}_$(date +%Y-%m-%d)/.gitkeep"
|
||||||
git add "changelog/${VERSION}"*
|
git add "changelog/${VERSION}"*
|
||||||
git rm -r changelog/unreleased
|
git rm -r changelog/unreleased
|
||||||
|
mkdir changelog/unreleased
|
||||||
|
touch changelog/unreleased/.gitkeep
|
||||||
|
git add changelog/unreleased/.gitkeep
|
||||||
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:
|
||||||
@@ -26,11 +30,11 @@
|
|||||||
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, or pass `--config` to
|
||||||
|
use another config file):
|
||||||
|
|
||||||
goreleaser \
|
goreleaser \
|
||||||
release \
|
release \
|
||||||
--config ../.goreleaser.yml \
|
|
||||||
--release-notes <(calens --template changelog/CHANGELOG-GitHub.tmpl --version "${VERSION}")
|
--release-notes <(calens --template changelog/CHANGELOG-GitHub.tmpl --version "${VERSION}")
|
||||||
|
|
||||||
7. Set a new version in `main.go` and commit the result:
|
7. Set a new version in `main.go` and commit the result:
|
||||||
|
|||||||
Reference in New Issue
Block a user