This repository has been archived by the owner on May 31, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 82
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build: Revamp build and release process (#127)
We are updating our build pipeline to better automate the release process. This requires a few build related changes in our source code.
- Loading branch information
Showing
11 changed files
with
66 additions
and
82 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,4 +8,5 @@ venv | |
coverage.out | ||
vendor | ||
/docs/ | ||
/site/content/en/docs/Reference/agc* | ||
/site/content/en/docs/Reference/agc* | ||
/dist/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"infile": "CHANGELOG.md", | ||
"packageFiles": [ | ||
{ | ||
"filename": "version.json", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. See [standard-version](/~https://github.com/conventional-changelog/standard-version) for commit guidelines. | ||
|
||
## 1.0.1 (2021-10-01) | ||
|
||
### Bug Fixes | ||
|
||
* Updated documentation | ||
* Scoped down engine IAM permissions | ||
* Improved error messages | ||
|
||
## 1.0.0 (2021-09-26) | ||
|
||
### Features | ||
|
||
* First release! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,17 @@ | ||
#!/bin/bash | ||
|
||
set -eo pipefail | ||
|
||
#---------------------------------------------------------------------------------------------------------- | ||
# | ||
# This script is intended to be used to bump up the version of the AGC modules for minor and patch releases | ||
# ---------------------------------------------------------------------------------------------------------- | ||
|
||
releaseAs=${1:-} | ||
if [ "${releaseAs}" != "minor" ] || [ "${releaseAs}" != "patch" ]; then | ||
echo "usage: ./bump.sh minor or patch. Defaulting to a minor release" | ||
releaseAs="${1:-minor}" | ||
releaseAs=${1:-minor} | ||
if [ "${releaseAs}" != "minor" ] && [ "${releaseAs}" != "patch" ]; then | ||
echo "usage: ./bump.sh minor or patch. Major version bumps will require more intention." | ||
exit 1 | ||
fi | ||
|
||
echo "Releasing a $releaseAs version bump..." | ||
npx standard-version --release-as "$releaseAs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -eo pipefail | ||
|
||
RELEASE_DIR="dist" | ||
|
||
mkdir -p ${RELEASE_DIR} | ||
cp ./{LICENSE,THIRD-PARTY,CHANGELOG.md} ${RELEASE_DIR} | ||
cp packages/cdk/cdk.tgz ${RELEASE_DIR} | ||
cp -a scripts/cli/. ${RELEASE_DIR} | ||
cp -a examples ${RELEASE_DIR} | ||
cp -a packages/cli/bin/local/. ${RELEASE_DIR} | ||
version=$(jq .version -r < version.json) | ||
commit="${CODEBUILD_RESOLVED_SOURCE_VERSION:-$(git rev-parse --verify HEAD)}" | ||
|
||
cat > ${RELEASE_DIR}/build.json <<HERE | ||
{ | ||
"name": "amazon-genomics-cli", | ||
"version": "${version}", | ||
"commit": "${commit}" | ||
} | ||
HERE |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.