Skip to content

Commit aaf098a

Browse files
ci: run release workflow on version tags
Made-with: Cursor
1 parent e719d61 commit aaf098a

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*'
7+
workflow_dispatch:
8+
9+
concurrency:
10+
group: release-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
release:
15+
runs-on: windows-latest
16+
permissions:
17+
contents: write
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v4
21+
22+
# prepare:cuda-dlls requires CUDA 12.x DLLs (cublas64_12.dll, etc.)
23+
- name: Install CUDA Toolkit
24+
uses: Jimver/cuda-toolkit@v0.2.35
25+
with:
26+
cuda: '12.4.1'
27+
method: network
28+
29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: '20'
33+
cache: npm
34+
35+
- name: Install dependencies
36+
run: npm ci
37+
38+
- name: Build and publish
39+
env:
40+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
41+
run: npm run release

0 commit comments

Comments
 (0)