File tree 1 file changed +16
-10
lines changed
1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 2
2
push :
3
3
tags :
4
4
- ' v*' # "v1.2.3"
5
- branches :
6
- - master
5
+ # branches: #Dont push to master the binaries as GH Actions will return an Error 403: Resource not accessible by integration
6
+ # - master
7
7
paths-ignore : ['media/**', 'docs/**', '**/*.md']
8
- pull_request :
9
- paths-ignore : ['media/**', 'docs/**', '**/*.md']
10
- workflow_dispatch :
8
+ # pull_request:
9
+ # paths-ignore: ['media/**', 'docs/**', '**/*.md']
10
+ workflow_dispatch :
11
11
jobs :
12
12
build :
13
13
strategy :
66
66
include :
67
67
- target :
68
68
os : linux
69
- builder : ubuntu-20 .04
69
+ builder : ubuntu-22 .04
70
70
- target :
71
71
os : macos
72
72
builder : macos-14
81
81
runs-on : ${{ matrix.builder }}
82
82
steps :
83
83
- name : Setup Build
84
- if : matrix.builder == 'ubuntu-20 .04'
84
+ if : matrix.builder == 'ubuntu-22 .04'
85
85
run : |
86
86
sudo apt install gcc make gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu \
87
87
gcc-i686-linux-gnu binutils-i686-linux-gnu \
@@ -202,14 +202,20 @@ jobs:
202
202
- name : Download artefacts
203
203
uses : actions/download-artifact@v4
204
204
205
+ - name : Get version from tag
206
+ id : get_version
207
+ run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
208
+
205
209
- uses : ncipollo/release-action@v1
206
210
with :
207
- name : Latest Nimlangserver Binaries
211
+ name : " Nimlangserver ${{ steps.get_version.outputs.VERSION }} "
208
212
artifacts : " */*"
209
213
allowUpdates : true
210
214
makeLatest : true
211
- prerelease : true
212
- tag : latest
215
+ prerelease : false
216
+ tag : ${{ steps.get_version.outputs.VERSION }}
217
+ token : ${{ secrets.GITHUB_TOKEN }}
218
+ generateReleaseNotes : true
213
219
214
220
- name : Delete artefacts
215
221
uses : geekyeggo/delete-artifact@v5
You can’t perform that action at this time.
0 commit comments