Skip to content

Commit

Permalink
fix: add permissions and conditional for event type release to workfl…
Browse files Browse the repository at this point in the history
…ow (#13)
  • Loading branch information
Emmanuel-Develops authored Aug 14, 2024
1 parent ff5aeb1 commit e5ddd09
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ on:
types: [created]
workflow_dispatch:

permissions:
contents: write

jobs:
build-and-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: true

- name: Setup Node.js
uses: actions/setup-node@v4
Expand All @@ -35,5 +39,8 @@ jobs:
git push
- name: Update release with dist folder
if: github.event_name == 'release'
env:
BDP_UI_TOKEN: ${{ secrets.BDP_UI_TOKEN }}
run: |
gh release upload ${{ github.ref }} dist/** --clobber

0 comments on commit e5ddd09

Please sign in to comment.