Skip to content

Commit 4b3f7f9

Browse files
authored
Update Hab expeditor script (#4506)
Signed-off-by: Ian Maddaus <[email protected]>
1 parent 3ff2dc9 commit 4b3f7f9

File tree

1 file changed

+1
-24
lines changed

1 file changed

+1
-24
lines changed

.expeditor/update_hugo_modules_project_promoted.sh

Lines changed: 1 addition & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -42,29 +42,9 @@ rm go.sum
4242
hugo mod clean
4343

4444
###
45-
# Manage Habitat generated pages
45+
# Manage Habitat version numbers for release notes
4646
###
4747

48-
# Habitat has two generated files (habitat_cli.md and service_templates.md) that
49-
# are made during the release pipeline.
50-
# Those two pages are generated and then pushed up to
51-
# https://packages.chef.io/files/stable/habitat/latest/generated-documentation.tar.gz
52-
53-
# To add these files to chef-web-docs and doc.chef.io, this script uses curl to pull down the
54-
# generated-documentation.tar.gz file, and then overwrite the blank pages pulled
55-
# in by Hugo from github.com/habitat-sh/habitat
56-
57-
# See:
58-
# - https://github.com/habitat-sh/habitat/pull/7993
59-
# - https://github.com/chef/chef-web-docs/blob/main/content/habitat/habitat_cli.md
60-
# - https://github.com/chef/chef-web-docs/blob/main/content/habitat/service_templates.md
61-
62-
if [[ "${EXPEDITOR_PROJECT}" == *"habitat"* ]]; then
63-
curl --silent --output generated-documentation.tar.gz https://packages.chef.io/files/${EXPEDITOR_TARGET_CHANNEL}/habitat/latest/generated-documentation.tar.gz
64-
tar xvzf generated-documentation.tar.gz --strip-components 1 -C content/habitat
65-
rm generated-documentation.tar.gz
66-
fi
67-
6848
# We use product version numbers for release notes.
6949
# There's no list of Habitat versions on packages.chef.io, so we store one in assets/release-notes/habitat/release-versions.json
7050
# This file is updated every time there's a new release of Hab
@@ -74,9 +54,6 @@ if [[ "${EXPEDITOR_PROJECT}" == *"habitat"* ]]; then
7454
echo -E "${version_data}" > assets/release-notes/habitat/release-versions.json
7555
fi
7656

77-
version="1.7.0" && \
78-
79-
8057
# submit pull request to chef/chef-web-docs
8158

8259
git add .

0 commit comments

Comments
 (0)