Skip to content

Commit 33db85e

Browse files
committed
Use actions-gh-release
1 parent a22652e commit 33db85e

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,16 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Upload plugin
15-
uses: actions/upload-artifact@v4
14+
- name: Zip plugin
15+
working-directory: calibre-plugin
16+
run: |
17+
zip --quiet -r ../"bookshare-plugin-${{ github.ref_name }}.zip" ./* -x "*.ui"
18+
19+
- name: Release plugin
20+
uses: softprops/action-gh-release@v2
21+
if: startsWith(github.ref, 'refs/tags/')
1622
with:
17-
name: bookshare-plugin-${{ github.ref_name }}
18-
if-no-files-found: error
19-
path: |
20-
calibre-plugin/
21-
!calibre-plugin/*.ui
23+
files: bookshare-plugin-${{ github.ref_name }}.zip
24+
token: ${{ secrets.GITHUB_TOKEN }}
25+
fail_on_unmatched_files: true
26+
generate_release_notes: true

0 commit comments

Comments
 (0)