Skip to content

Commit

Permalink
Merge pull request #68 from aws-ia/ephemeral_project-updates
Browse files Browse the repository at this point in the history
Updates from project type
  • Loading branch information
andrew-glenn authored Oct 1, 2024
2 parents 2d99972 + 90fdda3 commit 5d8a06c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .copier-answers.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# This file is auto-generated, changes will be overwritten
_commit: v0.1.4
_src_path: /task/f0ec3dcc-afe2-11ee-8091-0668063857e2/projecttype
_commit: v1.0.0
_src_path: /task/59917f39-7e78-11ef-956d-6ad65699f73e/projecttype
starting_version: v0.0.0
version_file: VERSION

11 changes: 11 additions & 0 deletions .project_automation/publication/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
PROJECT_PATH=${BASE_PATH}/project
PROJECT_TYPE_PATH=${BASE_PATH}/projecttype

echo "[STAGE: Publication]"
VERSION=$(cat VERSION)
echo $VERSION
BRANCH=main
EXISTING_GIT_VERSION="$(git tag -l)"
HUGO_VERSION=$(hugo version)
Expand All @@ -16,6 +19,14 @@ VERSION=$(cat VERSION)
BASE_URL="this would be the path to s3 bucket/${REPO_NAME}/"
S3_URI="s3://aws-abi/guide/${REPO_NAME}/"

if [[ $(echo $EXISTING_GIT_VERSION | grep $VERSION) ]]
then
echo "version exists skipping release creation hint: Bump version in VERSION file"
else
echo "creating new version"
gh release create ${VERSION} --target ${BRANCH} --generate-notes
fi

print_header() {
printf "\n\n%s\n" "$*"
}
Expand Down
2 changes: 2 additions & 0 deletions .project_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ functional_tests:
dockerfile: .project_automation/functional_tests/Dockerfile
entrypoint: .project_automation/functional_tests/entrypoint.sh
publication:
github_permissions:
contents: write
enable_docker: true
dockerfile: .project_automation/publication/Dockerfile
entrypoint: .project_automation/publication/entrypoint.sh
Expand Down

0 comments on commit 5d8a06c

Please sign in to comment.