summaryrefslogtreecommitdiff
path: root/.expeditor/publish-release-notes.sh
diff options
context:
space:
mode:
Diffstat (limited to '.expeditor/publish-release-notes.sh')
-rwxr-xr-x.expeditor/publish-release-notes.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/.expeditor/publish-release-notes.sh b/.expeditor/publish-release-notes.sh
new file mode 100755
index 0000000000..fc89315bb5
--- /dev/null
+++ b/.expeditor/publish-release-notes.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+
+set -eou pipefail
+
+git clone https://x-access-token:${GITHUB_TOKEN}@github.com/chef/chef.wiki.git
+
+pushd ./chef.wiki
+ # Publish release notes to S3
+ aws s3 cp Pending-Release-Notes.md "s3://chef-automate-artifacts/release-notes/${EXPEDITOR_PRODUCT_KEY}/${EXPEDITOR_VERSION}.md" --acl public-read --content-type "text/plain" --profile chef-cd
+ aws s3 cp Pending-Release-Notes.md "s3://chef-automate-artifacts/${EXPEDITOR_CHANNEL}/latest/${EXPEDITOR_PRODUCT_KEY}/release-notes.md" --acl public-read --content-type "text/plain" --profile chef-cd
+
+ # Reset "Stable Release Notes" wiki page
+ cat >./Pending-Release-Notes.md <<EOH
+## Compliance Phase Improvements
+
+## New Resources
+
+## Resource Updates
+
+## Packaging
+
+## Security
+
+EOH
+
+ # Push changes back up to GitHub
+ git add .
+ git commit -m "Release Notes for promoted build $EXPEDITOR_VERSION"
+ git push origin main
+popd
+
+rm -rf chef.wiki