Skip to content

Commit

Permalink
fix workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Leonezz committed Feb 26, 2023
1 parent fe38c49 commit fe0c247
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:

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

jobs:
build:
Expand All @@ -27,7 +28,7 @@ jobs:
npm install
npm run build
mkdir ${{ env.PLUGIN_NAME }}
cp ExampleVault/.obsidian/plugins/tasks-view/main.js manifest.json styles.css ${{ env.PLUGIN_NAME }}
cp ${{ env.JSPATH }} manifest.json styles.css ${{ env.PLUGIN_NAME }}
zip -r ${{ env.PLUGIN_NAME }}.zip ${{ env.PLUGIN_NAME }}
ls
echo "::set-output name=tag_name::$(git tag --sort version:refname | tail -n 1)"
Expand Down Expand Up @@ -62,7 +63,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./main.js
asset_path: ${{ env.JSPATH }}
asset_name: main.js
asset_content_type: text/javascript

Expand Down

0 comments on commit fe0c247

Please sign in to comment.