File tree 4 files changed +29
-2
lines changed
.project_automation/publication
4 files changed +29
-2
lines changed Original file line number Diff line number Diff line change 1
1
# This file is auto-generated, changes will be overwritten
2
- _commit : v0.1.4
3
- _src_path : /task/2e473583-afe4-11ee-9151-2a3fbdb411a6 /projecttype
2
+ _commit : v1.0.0
3
+ _src_path : /task/8291ffe3-7e78-11ef-8b8d-5a72e42fd962 /projecttype
4
4
starting_version : v0.0.0
5
5
version_file : VERSION
6
6
Original file line number Diff line number Diff line change 5
5
PROJECT_PATH=${BASE_PATH} /project
6
6
PROJECT_TYPE_PATH=${BASE_PATH} /projecttype
7
7
8
+ echo " [STAGE: Publication]"
9
+ VERSION=$( cat VERSION)
10
+ echo $VERSION
8
11
BRANCH=main
9
12
EXISTING_GIT_VERSION=" $( git tag -l) "
10
13
HUGO_VERSION=$( hugo version)
@@ -16,6 +19,14 @@ VERSION=$(cat VERSION)
16
19
BASE_URL=" this would be the path to s3 bucket/${REPO_NAME} /"
17
20
S3_URI=" s3://aws-abi/guide/${REPO_NAME} /"
18
21
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
+
19
30
print_header () {
20
31
printf " \n\n%s\n" " $* "
21
32
}
Original file line number Diff line number Diff line change @@ -12,6 +12,8 @@ functional_tests:
12
12
dockerfile : .project_automation/functional_tests/Dockerfile
13
13
entrypoint : .project_automation/functional_tests/entrypoint.sh
14
14
publication :
15
+ github_permissions :
16
+ contents : write
15
17
enable_docker : true
16
18
dockerfile : .project_automation/publication/Dockerfile
17
19
entrypoint : .project_automation/publication/entrypoint.sh
Original file line number Diff line number Diff line change
1
+ ---
2
+ weight : 10
3
+ title : Test the deployment
4
+ description : Steps to test the deployment of the <project-name> ABI solution.
5
+ ---
6
+
7
+ ## Step-1
8
+
9
+ ## Step-2
10
+
11
+ ## Step-3
12
+
13
+
14
+ ** Next:** See [ Additional resources] ( /additional-resources/index.html ) to explore more documentation and references.
You can’t perform that action at this time.
0 commit comments