Skip to content

Commit e5ddd09

Browse files
fix: add permissions and conditional for event type release to workflow (#13)
1 parent ff5aeb1 commit e5ddd09

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/build-and-release.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@ on:
55
types: [created]
66
workflow_dispatch:
77

8+
permissions:
9+
contents: write
10+
811
jobs:
912
build-and-commit:
1013
runs-on: ubuntu-latest
1114
steps:
1215
- uses: actions/checkout@v4
1316
with:
1417
fetch-depth: 0
18+
persist-credentials: true
1519

1620
- name: Setup Node.js
1721
uses: actions/setup-node@v4
@@ -35,5 +39,8 @@ jobs:
3539
git push
3640
3741
- name: Update release with dist folder
42+
if: github.event_name == 'release'
43+
env:
44+
BDP_UI_TOKEN: ${{ secrets.BDP_UI_TOKEN }}
3845
run: |
3946
gh release upload ${{ github.ref }} dist/** --clobber

0 commit comments

Comments
 (0)