From 1d676f8aad77a6591b18ead6dd863165bfb59274 Mon Sep 17 00:00:00 2001 From: Pete Lumbis Date: Tue, 10 Jan 2023 18:03:00 -0500 Subject: [PATCH] Changes for moving docs source of truth (#243) * Create new release issue template Signed-off-by: Pete Lumbis * add an issue title Signed-off-by: Pete Lumbis * indicate user should supply a version number Signed-off-by: Pete Lumbis * Remove publish directive Signed-off-by: Pete Lumbis Signed-off-by: Pete Lumbis --- .github/ISSUE_TEMPLATE/new_release.md | 9 +++++++++ Makefile | 14 -------------- 2 files changed, 9 insertions(+), 14 deletions(-) create mode 100644 .github/ISSUE_TEMPLATE/new_release.md diff --git a/.github/ISSUE_TEMPLATE/new_release.md b/.github/ISSUE_TEMPLATE/new_release.md new file mode 100644 index 00000000..53537fb2 --- /dev/null +++ b/.github/ISSUE_TEMPLATE/new_release.md @@ -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) \ No newline at end of file diff --git a/Makefile b/Makefile index 62d67091..c9df1a7b 100644 --- a/Makefile +++ b/Makefile @@ -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