From d1aa05e7268f86e21df2c8b073ec86e1453a3cbc Mon Sep 17 00:00:00 2001 From: efiten Date: Sat, 13 Jun 2026 21:58:31 +0200 Subject: [PATCH] ci: build dist and publish a GitHub Release artifact on version tags --- .github/workflows/release.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..95718de --- /dev/null +++ b/.github/workflows/release.yml @@ -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