Skip to content

Commit fe0c247

Browse files
committed
fix workflow
1 parent fe38c49 commit fe0c247

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77

88
env:
99
PLUGIN_NAME: obsidian-tasks-calendar-wrapper # Change this to match the id of your plugin.
10+
JSPATH: ExampleVault/.obsidian/plugins/tasks-view/main.js
1011

1112
jobs:
1213
build:
@@ -27,7 +28,7 @@ jobs:
2728
npm install
2829
npm run build
2930
mkdir ${{ env.PLUGIN_NAME }}
30-
cp ExampleVault/.obsidian/plugins/tasks-view/main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
31+
cp ${{ env.JSPATH }} manifest.json styles.css ${{ env.PLUGIN_NAME }}
3132
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
3233
ls
3334
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
@@ -62,7 +63,7 @@ jobs:
6263
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6364
with:
6465
upload_url: ${{ steps.create_release.outputs.upload_url }}
65-
asset_path: ./main.js
66+
asset_path: ${{ env.JSPATH }}
6667
asset_name: main.js
6768
asset_content_type: text/javascript
6869

0 commit comments

Comments
 (0)