ci: build dist and publish a GitHub Release artifact on version tags

This commit is contained in:
efiten committed 2026-06-13 21:58:31 +02:00
1 parent 1b430b7247
commit d1aa05e726
1 file changed
+23
+23
View File
@@ -0,0 +1,23 @@
name: Release
on:
push:
tags: ['v*']
permissions:
contents: write
jobs:
build-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: npm ci
- run: npm run build
- name: Package dist
run: cd dist && zip -r "../corescope-rx-${GITHUB_REF_NAME}.zip" . && cd ..
- name: Publish release with the built artifact
uses: softprops/action-gh-release@v2
with:
files: corescope-rx-*.zip
generate_release_notes: true