From 9312fe8418bdf82dee989702c438f0d8081443f3 Mon Sep 17 00:00:00 2001 From: Wilken Rivera Date: Mon, 7 Mar 2022 15:00:42 -0500 Subject: [PATCH] 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. --- .goreleaser.yml | 6 +++--- GNUmakefile | 1 - 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.goreleaser.yml b/.goreleaser.yml index bfafc65..91cc8d0 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -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: @@ -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 diff --git a/GNUmakefile b/GNUmakefile index ee84c12..78205e5 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -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