@@ -44,18 +44,18 @@ jobs:
44
44
45
45
- name : Get short SHA
46
46
id : slug
47
- run : |
47
+ run : |
48
48
echo "SHA8=$(echo ${GITHUB_SHA} | cut -c1-8)" >> $GITHUB_ENV
49
49
50
50
- name : build changelogs and move extra files
51
- run : |
51
+ run : |
52
52
make changelog
53
53
cp LICENSE bin/LICENSE.TXT
54
54
55
55
- name : Get branch
56
56
if : github.ref != 'refs/heads/main'
57
57
id : brnch
58
- run : |
58
+ run : |
59
59
echo "BRANCH=$(echo -${GITHUB_REF#refs/heads/})" >> $GITHUB_ENV
60
60
61
61
- name : Upload artifacts
@@ -71,23 +71,48 @@ jobs:
71
71
echo if you report an issue to the developer. there is a high chance that he might ask you this code>>bin/INSTALL/CORE/HASH.TXT
72
72
mv bin/ ${{ github.event.repository.name }}/
73
73
7z a -t7z ${{ github.event.repository.name }}${{ env.BRANCH }}.7z ${{ github.event.repository.name }}/
74
-
75
- - name : Create pre-release
76
- if : github.ref == 'refs/heads/main'
77
- uses : marvinpinto /action-automatic-releases@latest
74
+
75
+ - name : Release
76
+ if : startsWith( github.ref, 'refs/tags/v')
77
+ uses : softprops /action-gh-release@v2
78
78
with :
79
- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
80
79
prerelease : true
81
- automatic_release_tag : " latest"
82
- title : " Latest Development build"
80
+ generate_release_notes : true
81
+ tag_name : " latest"
82
+ name : " Latest Development build"
83
83
files : |
84
- ${{ github.event.repository.name }}${{ env.BRANCH }}.7z
84
+ ${{ github.event.repository.name }}${{ env.BRANCH }}.7z
85
+ body : |
86
+ 
85
87
86
88
- name : Release
87
89
if : startsWith(github.ref, 'refs/tags/v')
88
- uses : marvinpinto /action-automatic-releases@latest
90
+ uses : softprops /action-gh-release@v2
89
91
with :
90
- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
91
- prerelease : false
92
+ make_latest : true
93
+ generate_release_notes : true
94
+ tag_name : " ${{ env.BRANCH }}"
95
+ name : " ${{ env.BRANCH }}"
92
96
files : |
93
- ${{ github.event.repository.name }}${{ env.BRANCH }}.7z
97
+ ${{ github.event.repository.name }}${{ env.BRANCH }}.7z
98
+ body : |
99
+ 
100
+
101
+ - name : notify on discord
102
+ if : github.ref == 'refs/heads/main'
103
+
104
+ with :
105
+ webhook-url : ${{ secrets.DISCORD_FEED }}
106
+ content : |
107
+ ## KELFBinder has been updated!
108
+ ### [Download Page](https://github.com/israpps/${{ github.event.repository.name }}/releases/tag/latest)
109
+
110
+ - name : notify on discord
111
+ if : startsWith(github.ref, 'refs/tags/v')
112
+
113
+ with :
114
+ webhook-url : ${{ secrets.DISCORD_FEED }}
115
+ content : |
116
+ # A new stable version of KELFBinder has been released!
117
+ ## [Download Page](https://github.com/israpps/${{ github.event.repository.name }}/releases/latest/)
118
+
0 commit comments