File tree Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Expand file tree Collapse file tree 2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 11
11
branches :
12
12
- main
13
13
14
+ env :
15
+ DEFAULT_TARGET_PLATFORM : ' Eclipse-2021-12'
16
+
14
17
jobs :
15
18
16
19
platform :
@@ -28,12 +31,15 @@ jobs:
28
31
distribution : ' temurin'
29
32
cache : maven
30
33
- name : ' Build for platform: ${{ matrix.target-platform }}'
31
- run : ' mvn -Dtarget.platform=${{ matrix.target-platform }} -Dsite.dir=testing clean verify'
32
- - name : ' Deploy for PR${{ github.event.pull_request.number }}'
33
- if : github.event_name == 'pull_request' && matrix.target-platform == 'Eclipse-2021-12'
34
+ run : ' mvn -Dtarget.platform=${{ matrix.target-platform }} -Dsite.dir=testing clean verify'
35
+ - name : Assign build.version.properties to env variable
36
+ if : github.event_name == 'pull_request' && matrix.target-platform == env.DEFAULT_TARGET_PLATFORM
37
+ run : cat site/target/build.version.properties >> $GITHUB_ENV
38
+ - name : ' Deploy build ${{ env.build_version_full }} for PR${{ github.event.pull_request.number }}'
39
+ if : github.event_name == 'pull_request' && matrix.target-platform == env.DEFAULT_TARGET_PLATFORM
34
40
uses : actions/upload-artifact@v2
35
- with :
36
- name : EasyShell-update-site-PR ${{ github.event.pull_request.number }}
41
+ with :
42
+ name : EasyShell-${{ env.build_version_full }}
37
43
path : site/target/repository
38
44
39
45
deploy-testing :
Original file line number Diff line number Diff line change 57
57
<target name =" compute.child.repository.data" depends =" getMajorMinorVersion" >
58
58
<property name =" parent.root.dir" location =" ../" />
59
59
<property name =" site.parent.dir" location =" updates" />
60
- <property name =" full.version" value =" ${unqualifiedVersion}.${buildQualifier}" />
60
+ <property name =" build.version.unqualified" value =" ${unqualifiedVersion}" />
61
+ <property name =" build.version.qualifier" value =" ${buildQualifier}" />
62
+ <property name =" build.version.full" value =" ${build.version.unqualified}.${build.version.qualifier}" />
63
+ <property name =" build.version.file" location =" ${project.build.directory}/build.version.properties" />
61
64
<property name =" site.composite.name" value =" ${site.label} ${majorMinorVersion}" />
62
65
<ucfirst string =" ${site.dir}" to =" site.dir.ucfirst" />
63
66
<property name =" main.site.composite.name" value =" ${site.label} ${site.dir.ucfirst} Versions" />
64
67
<property name =" main.composite.repository.directory" location =" ${site.parent.dir}/${site.dir}" />
65
68
<property name =" composite.repository.directory" value =" ${main.composite.repository.directory}/${majorMinorVersion}" />
66
- <property name =" child.repository" value =" ${full .version}" />
69
+ <property name =" child.repository" value =" ${build .version.full }" />
67
70
<property name =" child.repository.directory" value =" ${composite.repository.directory}/${child.repository}/" />
68
71
</target >
69
72
90
93
composite.repository.child=" ${majorMinorVersion}"
91
94
/>
92
95
96
+ <echo file =" ${build.version.file}" append =" false" message =" build_version_unqualified=${build.version.unqualified}${line.separator}" />
97
+ <echo file =" ${build.version.file}" append =" true" message =" build_version_qualifier=${build.version.qualifier}${line.separator}" />
98
+ <echo file =" ${build.version.file}" append =" true" message =" build_version_full=${build.version.full}${line.separator}" />
99
+
93
100
<copy file =" ${parent.root.dir}/README.md" tofile =" ${site.parent.dir}/index.md" overwrite =" true" />
94
101
</target >
95
102
You can’t perform that action at this time.
0 commit comments