File tree 1 file changed +55
-0
lines changed
1 file changed +55
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This is a basic workflow to help you get started with Actions
2
+ name : RealisticVillagers Builder
3
+ # Controls when the action will run. Triggers the workflow on push or pull request
4
+ # events but only for the master branch
5
+ on :
6
+ workflow_dispatch :
7
+ inputs :
8
+ logLevel :
9
+ description : ' Log level'
10
+ required : true
11
+ default : ' warning'
12
+ tags :
13
+ description : ' Test scenario tags'
14
+ push :
15
+ branches : [ "master" ]
16
+ pull_request :
17
+ branches : [ "master" ]
18
+
19
+ jobs :
20
+ build :
21
+ permissions : write-all
22
+ runs-on : ubuntu-latest
23
+ steps :
24
+ - uses : actions/checkout@v3
25
+ - name : Set up JDK 17
26
+ uses : actions/setup-java@v3
27
+ with :
28
+ java-version : ' 17'
29
+ distribution : ' temurin'
30
+ server-id : phoenixdevt-releases
31
+ - name : Set up JDK 21
32
+ uses : actions/setup-java@v3
33
+ with :
34
+ java-version : ' 21'
35
+ distribution : ' temurin'
36
+ server-id : phoenixdevt-releases
37
+ - name : Install depends
38
+ run : mvn install
39
+ - name : Build with Maven
40
+ run : mvn -B package --file pom.xml
41
+ - run : mkdir staging && cp target/*.jar staging
42
+ - name : Set Release version env variable
43
+ run : |
44
+ echo "RELEASE_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
45
+ - name : " Build & test"
46
+ run : |
47
+ echo "done!"
48
+ - uses : " marvinpinto/action-automatic-releases@latest"
49
+ with :
50
+ repo_token : " ${{ secrets.GITHUB_TOKEN }}"
51
+ automatic_release_tag : " ${{ env.RELEASE_VERSION }}"
52
+ prerelease : false
53
+ title : " Release ${{ env.RELEASE_VERSION }}"
54
+ files : |
55
+ staging/*.jar
You can’t perform that action at this time.
0 commit comments