Skip to content

Commit 6b3abbe

Browse files
committed
ci: add write permission
1 parent 50b5d15 commit 6b3abbe

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/package-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Package and Release Tarot Deck
22

3+
permissions:
4+
contents: write
5+
36
on:
47
workflow_dispatch:
58
push:
@@ -33,11 +36,10 @@ jobs:
3336
3437
- name: Create Release
3538
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/')
36-
uses: softprops/action-gh-release@v1
39+
uses: softprops/action-gh-release@v2
3740
with:
3841
files: ${{ steps.package.outputs.zip_file }}
3942
name: Rider-Waite-Smith Tarot Deck v${{ steps.package.outputs.version }}
40-
tag_name: ${{ startsWith(github.ref, 'refs/tags/') && github.ref_name || format('v{0}', steps.package.outputs.version) }}
4143
draft: false
4244
prerelease: false
4345
body: |

0 commit comments

Comments
 (0)