File tree 2 files changed +24
-6
lines changed
2 files changed +24
-6
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,11 @@ steps:
16
16
releaseNameNotDefined : " ${{TAG_REPO}} == true"
17
17
commands :
18
18
- cf_export RELEASE_NAME=${{TAG_NAME}}
19
+ - cf_export GH_TOKEN=${{REGNOSYS_OPS_TOKEN}}
20
+ - cf_export GITHUB_RELEASE_API="https://api.github.com/repos/${{CF_REPO_OWNER}}/${{CF_REPO_NAME}}/releases"
21
+ - >-
22
+ cf_export GITHUB_API_CURL="curl -L -X POST -H \"Accept: application/vnd.github+json\" -H \"Authorization: Bearer ${{REGNOSYS_OPS_TOKEN}}\""
23
+
19
24
20
25
BranchReleaseName :
21
26
title : Setup RELEASE_NAME variable with branch name
30
35
Build :
31
36
title : Maven build
32
37
fail_fast : false
33
- image : maven:3.8.5-openjdk-11
38
+ image : maven:3.9.8-eclipse-temurin-21
34
39
working_directory : ./
35
40
commands :
36
41
- echo "${{ARTIFACT_REGISTRY_SA_KEY}}"|base64 -d>"${{CF_VOLUME_PATH}}"/sa
@@ -85,6 +90,23 @@ steps:
85
90
- git tag ${{TAG_NAME}}
86
91
- git push https://${{ROSETTA_MODELS_USER}}:${{ROSETTA_MODELS_PWD}}@github.com/rosetta-models/demo.git ${{TAG_NAME}}
87
92
93
+ CreateRelease :
94
+ title : Create Release
95
+ image : curlimages/curl
96
+ when :
97
+ condition :
98
+ all :
99
+ isRelease : " ${{TAG_REPO}}"
100
+ buildPassed : steps.TagRepo.result == 'success'
101
+ commands :
102
+ - echo CreateRelease
103
+ - >-
104
+ ${{GITHUB_API_CURL}} ${{GITHUB_RELEASE_API}}
105
+ -d '{
106
+ "tag_name": "${{RELEASE_NAME}}",
107
+ "generate_release_notes": true
108
+ }'
109
+
88
110
StartNextBuild :
89
111
title : Build rosetta-ingest if on master
90
112
image : codefresh/cli
Original file line number Diff line number Diff line change 15
15
16
16
<properties >
17
17
<project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
18
- <java .version >11</java .version >
18
+ <maven .compiler.release >11</maven .compiler.release >
19
19
20
20
<rosetta .dsl.version>9.32.2</rosetta .dsl.version>
21
21
<rosetta .bundle.version>11.38.1</rosetta .bundle.version>
98
98
<groupId >org.apache.maven.plugins</groupId >
99
99
<artifactId >maven-compiler-plugin</artifactId >
100
100
<version >${maven-compiler-plugin.version} </version >
101
- <configuration >
102
- <source >${java.version} </source >
103
- <target >${java.version} </target >
104
- </configuration >
105
101
</plugin >
106
102
<plugin >
107
103
<groupId >org.apache.maven.plugins</groupId >
You can’t perform that action at this time.
0 commit comments