fix release creation

This commit is contained in:
Markus Moser 2025-03-14 16:38:36 +01:00
parent d02a1624e7
commit 4f893279c7
No known key found for this signature in database
GPG key ID: AD411FF94FFE07BD
2 changed files with 4 additions and 7 deletions

View file

@ -1,4 +1,4 @@
#!/usr/bin/env sh
#!/usr/bin/env bash
PLUGIN_NAME=${1:-${PWD##*/}}

View file

@ -18,16 +18,13 @@ jobs:
node-version: "18.x"
- name: Build plugin
run: |
npm install
npm run build
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PLUGIN_NAME: ${{ github.event.repository.name }}
run: |
sh ./.github/make_release.sh ${PLUGIN_NAME}
npm install
npm run build
bash ./.github/make_release.sh ${PLUGIN_NAME}
tag="${GITHUB_REF#refs/tags/}"
gh release create "$tag" --generate-notes ${PLUGIN_NAME}.zip