Skip to content

Commit 9312fe8

Browse files
authored
Add documentation archive to plugin release (#5)
This change updates the main plugin makefile to generate the docs.zip file needed by Packer.io for remote documentation ingestion, at release. The accompanying .goreleaser file has been updated to published the generated zip.
1 parent 49d6758 commit 9312fe8

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

.goreleaser.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ before:
99
- go test ./...
1010
# As part of the release doc files are included as a separate deliverable for
1111
# consumption by Packer.io. To include a separate docs.zip uncomment the following command.
12-
#- make ci-release-docs
12+
- make ci-release-docs
1313
# Check plugin compatibility with required version of the Packer SDK
1414
- make plugin-check
1515
builds:
@@ -73,8 +73,8 @@ release:
7373
# draft: true
7474
# As part of the release doc files are included as a separate deliverable for consumption by Packer.io.
7575
# To include a separate docs.zip uncomment the extra_files config and the docs.zip command hook above.
76-
#extra_files:
77-
#- glob: ./docs.zip
76+
extra_files:
77+
- glob: ./docs.zip
7878

7979
changelog:
8080
skip: true

GNUmakefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ install-packer-sdc: ## Install packer sofware development command
2222
@go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc@${HASHICORP_PACKER_PLUGIN_SDK_VERSION}
2323

2424
ci-release-docs: install-packer-sdc
25-
@packer-sdc renderdocs -src docs -partials docs-partials/ -dst docs/
2625
@/bin/sh -c "[ -d docs ] && zip -r docs.zip docs/"
2726

2827
plugin-check: install-packer-sdc build

0 commit comments

Comments
 (0)