Changes for moving docs source of truth (#243)

* Create new release issue template

Signed-off-by: Pete Lumbis <pete@upbound.io>

* add an issue title

Signed-off-by: Pete Lumbis <pete@upbound.io>

* indicate user should supply a version number

Signed-off-by: Pete Lumbis <pete@upbound.io>

* Remove publish directive

Signed-off-by: Pete Lumbis <pete@upbound.io>

Signed-off-by: Pete Lumbis <pete@upbound.io>
This commit is contained in:
Pete Lumbis 2023-01-10 18:03:00 -05:00 committed by GitHub
parent d2e3778974
commit 1d676f8aad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 14 deletions

9
.github/ISSUE_TEMPLATE/new_release.md vendored Normal file
View File

@ -0,0 +1,9 @@
---
name: New Release
title: "Release Crossplane version... "
about: Cut a Crossplane release
labels: release
---
- [ ] Update the `/latest` redirect in [netlify.toml](https://github.com/crossplane/docs/blob/master/netlify.toml#L9)
- [ ] Update `params.latest` in [config.yaml](https://github.com/crossplane/docs/blob/master/config.yaml#L48)

View File

@ -90,17 +90,3 @@ build: $(HUGO)
# NOTE(hasheddan): this target exists so that validation can expand to inlude
# other actions rather than just building.
validate: build
# Push new changes to the live site.
publish:
$(eval ROOT_DIR = $(shell pwd -P))
git -C "$(ROOT_DIR)" add -A
@if git -C "$(ROOT_DIR)" diff-index --cached --quiet HEAD --; then\
echo "no changes detected";\
else \
echo "committing changes...";\
git -C "$(ROOT_DIR)" -c user.email="info@crossplane.io" -c user.name="Crossplane" commit --message="docs snapshot for crossplane version \`$(DOCS_VERSION)\`"; \
echo "pushing changes..."; \
git -C "$(ROOT_DIR)" push; \
echo "crossplane.github.io changes published"; \
fi