Skip to content

Commit be5fb8e

Browse files
authored
fixes ci (#341)
* fixes ci * bumps ubuntu in the binaries ci * Fixes releases action * disables github release as there is a permission issue * Updates action * Binaries wf update * removes pr
1 parent bde4351 commit be5fb8e

File tree

1 file changed

+16
-10
lines changed

1 file changed

+16
-10
lines changed

.github/workflows/binaries.yml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ on:
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:
1111
jobs:
1212
build:
1313
strategy:
@@ -66,7 +66,7 @@ jobs:
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
@@ -81,7 +81,7 @@ jobs:
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

0 commit comments

Comments
 (0)