File tree Expand file tree Collapse file tree 4 files changed +95
-15
lines changed Expand file tree Collapse file tree 4 files changed +95
-15
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
+
4
+ name : Build-Release
5
+
6
+ on :
7
+ push :
8
+ branches :
9
+ - ' release*'
10
+
11
+ jobs :
12
+
13
+ default :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Set up JDK 11
18
+ uses : actions/setup-java@v2
19
+ with :
20
+ java-version : ' 11'
21
+ distribution : ' temurin'
22
+ cache : maven
23
+ - name : Build release for default platform
24
+ run : ' mvn -Dsite.dir=release clean verify'
25
+ - name : Assign build.version.properties to env variable
26
+ run : cat site/target/build.version.properties >> $GITHUB_ENV
27
+ - name : Create Pull Request
28
+ uses : peter-evans/create-pull-request@v3
29
+ with :
30
+ commit-message : ' [${{ env.build_version_major_minor }}] release build ${{ env.build_version_full }}'
31
+ title : ' [${{ env.build_version_major_minor }}] release build ${{ env.build_version_full }}'
32
+ body : |
33
+ [Milestone ${{ env.build_version_unqualified }}](https://github.com/anb0s/EasyShell/milestone/${{ env.build_version_milestone }}?closed=1)
34
+ labels : |
35
+ help wanted
36
+ Version ${{ env.build_version_unqualified }}
37
+ milestone : ${{ env.build_version_milestone }}
38
+ delete-branch : true
39
+ base : main
Original file line number Diff line number Diff line change 1
1
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2
2
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
3
4
- name : Testing
4
+ name : Build- Testing
5
5
6
6
on :
7
7
push :
@@ -23,20 +23,17 @@ jobs:
23
23
- name : Build testing for default platform
24
24
run : ' mvn -Dsite.dir=testing clean verify'
25
25
- name : Assign build.version.properties to env variable
26
- run : cat site/updates/testing /build.version.properties >> $GITHUB_ENV
26
+ run : cat site/target /build.version.properties >> $GITHUB_ENV
27
27
- name : Create Pull Request
28
28
uses : peter-evans/create-pull-request@v3
29
29
with :
30
30
commit-message : ' [${{ env.build_version_major_minor }}] testing build ${{ env.build_version_full }}'
31
- title : ' [${{ env.build_version_major_minor }}] testing of build ${{ env.build_version_full }}'
31
+ title : ' [${{ env.build_version_major_minor }}] testing build ${{ env.build_version_full }}'
32
32
body : |
33
- ### Fixed issues
34
-
35
- [milestone ${{ env.build_version_unqualified }}](https://github.com/anb0s/EasyShell/milestone/${{ env.build_version_milestone }}?closed=1)
33
+ [Milestone ${{ env.build_version_unqualified }}](https://github.com/anb0s/EasyShell/milestone/${{ env.build_version_milestone }}?closed=1)
36
34
labels : |
37
35
help wanted
38
36
Version ${{ env.build_version_unqualified }}
39
37
milestone : ${{ env.build_version_milestone }}
40
38
delete-branch : true
41
- branch : staging
42
39
base : main
Original file line number Diff line number Diff line change @@ -6,10 +6,9 @@ name: Pre-Release
6
6
on :
7
7
push :
8
8
tags :
9
- - " v*.*.*-pre*"
10
- - " v*.*.*-alpha*"
11
- - " v*.*.*-beta*"
12
- - " v*.*.*-rc*"
9
+ - " v[0-9]+.[0-9]+.[0-9]+-alpha*"
10
+ - " v[0-9]+.[0-9]+.[0-9]+-beta*"
11
+ - " v[0-9]+.[0-9]+.[0-9]+-rc*"
13
12
14
13
jobs :
15
14
@@ -36,13 +35,13 @@ jobs:
36
35
generate_release_notes : true
37
36
prerelease : true
38
37
body : |
39
- ### Testing of the build **${{ env.build_version_full }}**
38
+ ### Testing build **${{ env.build_version_full }}**
40
39
41
- All version testing update site: `http://anb0s.github.io/EasyShell/testing`
42
- Exact version only update site: `http://anb0s.github.io/EasyShell/testing/${{ env.build_version_path }}`
40
+ All versions update site: `http://anb0s.github.io/EasyShell/testing`
41
+ Exact version update site: `http://anb0s.github.io/EasyShell/testing/${{ env.build_version_path }}`
43
42
Version: `EasyShell ${{ env.build_version_full }}`
44
43
45
- **Use "Help | Install New Software...", paste the link and select the right version!**
44
+ **Use "Help | Install New Software...", paste the update site link and select the right version!**
46
45
47
46
[Milestone ${{ env.build_version_unqualified }}](https://github.com/anb0s/EasyShell/milestone/${{ env.build_version_milestone }}?closed=1)
48
47
files : EasyShell-${{ env.build_version_full }}.zip
Original file line number Diff line number Diff line change
1
+ # This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
3
+
4
+ name : Release
5
+
6
+ on :
7
+ push :
8
+ tags :
9
+ - " v[0-9]+.[0-9]+.[0-9]+"
10
+
11
+ jobs :
12
+
13
+ deploy-release :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v2
17
+ - name : Deploy for Release
18
+ uses : JamesIves/github-pages-deploy-action@v4
19
+ with :
20
+ branch : gh-pages
21
+ folder : site/updates
22
+ clean : false
23
+ - name : Assign build.version.properties to env variable
24
+ run : cat site/updates/release/build.version.properties >> $GITHUB_ENV
25
+ - name : ' Zip artifacts ${{ env.build_version_full }} for Release'
26
+ uses : papeloto/action-zip@v1
27
+ with :
28
+ files : site/updates/release/${{ env.build_version_path }}
29
+ dest : EasyShell-${{ env.build_version_full }}.zip
30
+ - name : Release
31
+ uses : softprops/action-gh-release@v1
32
+ with :
33
+ generate_release_notes : true
34
+ prerelease : false
35
+ body : |
36
+ ### Release build **${{ env.build_version_full }}**
37
+
38
+ All versions update site: `http://anb0s.github.io/EasyShell`
39
+ Exact version update site: `http://anb0s.github.io/EasyShell/release/${{ env.build_version_path }}`
40
+ Version: `EasyShell ${{ env.build_version_full }}`
41
+
42
+ **Use "Help | Install New Software...", paste the update site link and select the right version!**
43
+
44
+ [Milestone ${{ env.build_version_unqualified }}](https://github.com/anb0s/EasyShell/milestone/${{ env.build_version_milestone }}?closed=1)
45
+ files : EasyShell-${{ env.build_version_full }}.zip
You can’t perform that action at this time.
0 commit comments