Skip to content

Commit

Permalink
Fix Github bundle release script (#3315)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-krishna authored Sep 9, 2022
1 parent 7331e75 commit 85a3a6e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions release/scripts/github-bundle-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,17 +26,14 @@ RELEASE_NOTES_PATH="$SCRIPT_ROOT/github-bundle-release-notes"
export DATE_YYYYMMDD=$(date "+%F")
RELEASE_TAG="weekly.$DATE_YYYYMMDD"

# Authenticating to GitHub with the bot token
echo "$GITHUB_TOKEN" | gh auth login --with-token

# Filling in values for the GitHub Release notes template
envsubst '$DATE_YYYYMMDD:$BUILD_REPO_HEAD:$CLI_REPO_HEAD' \
< "$RELEASE_NOTES_PATH.tmpl" \
> "$RELEASE_NOTES_PATH"

# Downloading the weekly bundle release manifest
mkdir -p $ARTIFACTS_DIR
wget $BUNDLE_MANIFEST_URL $ARTIFACTS_DIR/weekly-bundle-release.yaml
wget $BUNDLE_MANIFEST_URL -O $ARTIFACTS_DIR/$DATE_YYYYMMDD-bundle-release.yaml

# Publish the asset as a Github pre-release on main branch with a new dated tag
gh release create $RELEASE_TAG $ARTIFACTS_DIR/weekly-bundle-release.yaml --notes-file "RELEASE_NOTES_PATH" --prerelease --repo "github.com/aws/eks-anywhere" --title "Weekly Release $DATE_YYYYMMDD" --target "main"
gh release create $RELEASE_TAG $ARTIFACTS_DIR/$DATE_YYYYMMDD-bundle-release.yaml --notes-file "$RELEASE_NOTES_PATH" --prerelease --repo "github.com/aws/eks-anywhere" --title "Weekly Release $DATE_YYYYMMDD" --target "main"

0 comments on commit 85a3a6e

Please sign in to comment.