Skip to content

Commit

Permalink
Add documentation archive to plugin release (#5)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
nywilken authored Mar 7, 2022
1 parent 49d6758 commit 9312fe8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ before:
- go test ./...
# As part of the release doc files are included as a separate deliverable for
# consumption by Packer.io. To include a separate docs.zip uncomment the following command.
#- make ci-release-docs
- make ci-release-docs
# Check plugin compatibility with required version of the Packer SDK
- make plugin-check
builds:
Expand Down Expand Up @@ -73,8 +73,8 @@ release:
# draft: true
# As part of the release doc files are included as a separate deliverable for consumption by Packer.io.
# To include a separate docs.zip uncomment the extra_files config and the docs.zip command hook above.
#extra_files:
#- glob: ./docs.zip
extra_files:
- glob: ./docs.zip

changelog:
skip: true
1 change: 0 additions & 1 deletion GNUmakefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ install-packer-sdc: ## Install packer sofware development command
@go install github.com/hashicorp/packer-plugin-sdk/cmd/packer-sdc@${HASHICORP_PACKER_PLUGIN_SDK_VERSION}

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

plugin-check: install-packer-sdc build
Expand Down

0 comments on commit 9312fe8

Please sign in to comment.