Skip to content

Commit 9a77918

Browse files
committed
Update: Using real tags now
1 parent 866d1d4 commit 9a77918

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches:
66
- main
7+
tags:
8+
- 'v*'
79
workflow_dispatch:
810

911
jobs:
@@ -49,7 +51,7 @@ jobs:
4951
mv build/redub redub-${{ matrix.os }}-${{ matrix.arch }}
5052
- name: Upload artifacts on Unix
5153
uses: actions/upload-artifact@v4
52-
if: runner.os != 'Windows' && github.ref == 'refs/heads/main'
54+
if: runner.os != 'Windows'
5355
with:
5456
name: redub-${{ matrix.os }}-${{ matrix.arch }}
5557
path: redub-${{ matrix.os }}-${{ matrix.arch }}
@@ -123,9 +125,11 @@ jobs:
123125
- name: Display structure of downloaded files
124126
run: ls -R
125127

126-
- name: "Update Prebuilt Binaries"
128+
- name: Publish release
127129
uses: ncipollo/release-action@v1
128130
with:
129-
artifacts: "redub-ubuntu-latest-x86_64,redub-ubuntu-24.04-arm-arm64,redub-macos-latest-arm64,redub-windows-latest-x86_64.exe,redub-alpine-x86_64"
131+
artifacts: "redub-*"
130132
allowUpdates: "true"
131-
tag: "Build"
133+
tag: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || 'nightly' }}
134+
name: ${{ startsWith(github.ref, 'refs/tags/') && format('Redub {0}', github.ref_name) || 'Redub Nightly' }}
135+
prerelease: ${{ startsWith(github.ref, 'refs/tags/') && 'false' || 'true' }}

0 commit comments

Comments
 (0)