Fix release documentation

This commit is contained in:
Alexander Neumann
2020-05-24 10:07:09 +02:00
parent 4171164a39
commit c7a44dd1a2

View File

@@ -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: