File tree 3 files changed +52
-4
lines changed 3 files changed +52
-4
lines changed Original file line number Diff line number Diff line change
1
+ name : ' create release'
2
+
3
+ on :
4
+ push :
5
+ tags :
6
+ - ' [0-9]+.[0-9]+*'
7
+
8
+ jobs :
9
+ prepare-release :
10
+ runs-on : ubuntu-latest
11
+
12
+ outputs :
13
+ tag : ${{ steps.vars.outputs.tag }}
14
+ version : ${{ steps.vars.outputs.version }}
15
+ upload_url : ${{ steps.create_release.outputs.upload_url }}
16
+
17
+ steps :
18
+ - name : Checkout...
19
+ uses : actions/checkout@v4
20
+
21
+ - name : Build and test...
22
+ run : mvn clean verify -U
23
+
24
+ - name : Set version...
25
+ id : vars
26
+ run : |
27
+ RELEASE_TAG=${GITHUB_REF#refs/*/}
28
+ echo "tag=${RELEASE_TAG}" >> $GITHUB_OUTPUT
29
+ echo "version=${RELEASE_TAG}" >> $GITHUB_OUTPUT
30
+
31
+ - name : Create release...
32
+ id : create_release
33
+ uses : softprops/action-gh-release@v2
34
+ with :
35
+ tag_name : ${{ steps.vars.outputs.tag }}
36
+ body : JJava ${{ steps.vars.outputs.version }} release
37
+ draft : true
38
+ prerelease : false
39
+ files : ./target/jjava-${{ steps.vars.outputs.version }}.zip
40
+ fail_on_unmatched_files : true
Original file line number Diff line number Diff line change 4
4
.project
5
5
.settings
6
6
* .iml
7
+ release.properties
8
+ * .releaseBackup
Original file line number Diff line number Diff line change 1
- <project xmlns =" http://maven.apache.org/POM/4.0.0"
2
- xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance"
3
- xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
1
+ <project xmlns =" http://maven.apache.org/POM/4.0.0" xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xsi : schemaLocation =" http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" >
4
2
<modelVersion >4.0.0</modelVersion >
5
3
6
4
<groupId >org.dflib</groupId >
25
23
<connection >scm:git:https://github.com/dflib/jjava</connection >
26
24
<developerConnection >scm:git:ssh://git@github.com/dflib/jjava</developerConnection >
27
25
<url >https://github.com/dflib/jjava</url >
28
- <tag >HEAD </tag >
26
+ <tag >${project.version} </tag >
29
27
</scm >
30
28
31
29
<dependencies >
133
131
</execution >
134
132
</executions >
135
133
</plugin >
134
+ <plugin >
135
+ <groupId >org.apache.maven.plugins</groupId >
136
+ <artifactId >maven-release-plugin</artifactId >
137
+ <version >3.0.1</version >
138
+ <configuration >
139
+ <tagNameFormat >@{project.version}</tagNameFormat >
140
+ </configuration >
141
+ </plugin >
136
142
</plugins >
137
143
</build >
138
144
</project >
You can’t perform that action at this time.
0 commit comments