Skip to content

Commit

Permalink
fix(gh-actions): broken tag name when creating release
Browse files Browse the repository at this point in the history
  • Loading branch information
bandantonio committed Mar 5, 2024
1 parent 0dbb7c8 commit 3e01d1c
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 12 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ jobs:
run: npm run build

- name: 📦 Create release
uses: softprops/action-gh-release@v1
if: steps.build_plugin.outcome == 'success' && contains(github.ref, 'refs/tags/')
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
tag='${GITHUB_REF#refs/tags/}'
gh release create '$tag' \
--title='$tag' \
--draft \
main.js manifest.json styles.css
with:
body: 'This release was generated automatically. Full details will be available soon'
draft: true
files: |
main.js
manifest.json
styles.css
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"id": "apple-books-import-highlights",
"name": "Apple Books - Import Highlights",
"version": "1.2.0",
"version": "1.2.1",
"minAppVersion": "0.15.0",
"description": "Import your Apple Books highlights and notes to Obsidian.",
"author": "bandantonio",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "obsidian-apple-books-highlights-plugin",
"version": "1.2.0",
"version": "1.2.1",
"description": "Import highlights and notes from your Apple Books to Obsidian",
"main": "main.js",
"scripts": {
Expand Down Expand Up @@ -42,4 +42,4 @@
"handlebars": "^4.7.8",
"sqlite3": "^5.1.7-rc.0"
}
}
}

0 comments on commit 3e01d1c

Please sign in to comment.