File tree Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Expand file tree Collapse file tree 1 file changed +16
-10
lines changed Original file line number Diff line number Diff line change 22 push :
33 tags :
44 - ' 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
77 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 :
1111jobs :
1212 build :
1313 strategy :
6666 include :
6767 - target :
6868 os : linux
69- builder : ubuntu-20 .04
69+ builder : ubuntu-22 .04
7070 - target :
7171 os : macos
7272 builder : macos-14
8181 runs-on : ${{ matrix.builder }}
8282 steps :
8383 - name : Setup Build
84- if : matrix.builder == 'ubuntu-20 .04'
84+ if : matrix.builder == 'ubuntu-22 .04'
8585 run : |
8686 sudo apt install gcc make gcc-aarch64-linux-gnu binutils-aarch64-linux-gnu \
8787 gcc-i686-linux-gnu binutils-i686-linux-gnu \
@@ -202,14 +202,20 @@ jobs:
202202 - name : Download artefacts
203203 uses : actions/download-artifact@v4
204204
205+ - name : Get version from tag
206+ id : get_version
207+ run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
208+
205209 - uses : ncipollo/release-action@v1
206210 with :
207- name : Latest Nimlangserver Binaries
211+ name : " Nimlangserver ${{ steps.get_version.outputs.VERSION }} "
208212 artifacts : " */*"
209213 allowUpdates : true
210214 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
213219
214220 - name : Delete artefacts
215221 uses : geekyeggo/delete-artifact@v5
You can’t perform that action at this time.
0 commit comments