Skip to content

Commit ca03cbd

Browse files
zimegmwbrooks
andauthored
build: run the docgen command with make tag release (#229)
Co-authored-by: Michael Brooks <mbrooks@slack-corp.com>
1 parent ba5cb15 commit ca03cbd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,12 +78,13 @@ build-snapshot: clean
7878
.PHONY: tag
7979
tag:
8080
git diff --quiet --cached
81-
git diff --quiet docs/guides/installing-the-slack-cli-*.md
81+
git diff --quiet
8282
@if echo "$(RELEASE_VERSION)" | grep -q '^v'; then \
8383
echo "Error: Release version should not begin with a version prefix."; \
8484
exit 1; \
8585
fi
8686
@printf "$(FONT_BOLD)Updating Docs$(FONT_RESET)\n"
87+
./bin/slack docgen ./docs/reference --skip-update
8788
sed -i.bak -E "s#slack_cli_[0-9]+\.[0-9]+\.[0-9]+_macOS_arm64\.tar\.gz#slack_cli_$(RELEASE_VERSION)_macOS_arm64.tar.gz#" docs/guides/installing-the-slack-cli-for-mac-and-linux.md
8889
sed -i.bak -E "s#slack_cli_[0-9]+\.[0-9]+\.[0-9]+_macOS_amd64\.tar\.gz#slack_cli_$(RELEASE_VERSION)_macOS_amd64.tar.gz#" docs/guides/installing-the-slack-cli-for-mac-and-linux.md
8990
sed -i.bak -E "s#slack_cli_[0-9]+\.[0-9]+\.[0-9]+_linux_64-bit\.tar\.gz#slack_cli_$(RELEASE_VERSION)_linux_64-bit.tar.gz#" docs/guides/installing-the-slack-cli-for-mac-and-linux.md
@@ -94,6 +95,7 @@ tag:
9495
rm docs/guides/installing-the-slack-cli-for-mac-and-linux.md.bak
9596
rm docs/guides/installing-the-slack-cli-for-windows.md.bak
9697
@printf "$(FONT_BOLD)Git Add$(FONT_RESET)\n"
98+
git add docs/reference
9799
git add docs/guides/installing-the-slack-cli-for-mac-and-linux.md
98100
git add docs/guides/installing-the-slack-cli-for-windows.md
99101
@printf "$(FONT_BOLD)Git Commit$(FONT_RESET)\n"

0 commit comments

Comments
 (0)