File tree Expand file tree Collapse file tree
.project_automation/publication Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# This file is auto-generated, changes will be overwritten
2- _commit : v0.1.4
3- _src_path : /task/8d381655-afe4-11ee-9151-2a3fbdb411a6 /projecttype
2+ _commit : v1.0.0
3+ _src_path : /task/d6acae9a-7e7e-11ef-8db1-5e92f42343b6 /projecttype
44starting_version : v0.0.0
55version_file : VERSION
66
Original file line number Diff line number Diff line change 55PROJECT_PATH=${BASE_PATH} /project
66PROJECT_TYPE_PATH=${BASE_PATH} /projecttype
77
8+ echo " [STAGE: Publication]"
9+ VERSION=$( cat VERSION)
10+ echo $VERSION
811BRANCH=main
912EXISTING_GIT_VERSION=" $( git tag -l) "
1013HUGO_VERSION=$( hugo version)
@@ -16,6 +19,14 @@ VERSION=$(cat VERSION)
1619BASE_URL=" this would be the path to s3 bucket/${REPO_NAME} /"
1720S3_URI=" s3://aws-abi/guide/${REPO_NAME} /"
1821
22+ if [[ $( echo $EXISTING_GIT_VERSION | grep $VERSION ) ]]
23+ then
24+ echo " version exists skipping release creation hint: Bump version in VERSION file"
25+ else
26+ echo " creating new version"
27+ gh release create ${VERSION} --target ${BRANCH} --generate-notes
28+ fi
29+
1930print_header () {
2031 printf " \n\n%s\n" " $* "
2132}
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ functional_tests:
1212 dockerfile : .project_automation/functional_tests/Dockerfile
1313 entrypoint : .project_automation/functional_tests/entrypoint.sh
1414publication :
15+ github_permissions :
16+ contents : write
1517 enable_docker : true
1618 dockerfile : .project_automation/publication/Dockerfile
1719 entrypoint : .project_automation/publication/entrypoint.sh
You can’t perform that action at this time.
0 commit comments