mirror of
https://github.com/markusmo3/obsidian-private-mode.git
synced 2026-07-22 05:42:42 +00:00
fix release creation
This commit is contained in:
parent
d02a1624e7
commit
4f893279c7
2 changed files with 4 additions and 7 deletions
2
.github/make_release.sh
vendored
2
.github/make_release.sh
vendored
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env sh
|
||||
#!/usr/bin/env bash
|
||||
|
||||
PLUGIN_NAME=${1:-${PWD##*/}}
|
||||
|
||||
|
|
|
|||
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue