Skip to content

Commit

Permalink
Update workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
Amaan-Samar committed Oct 30, 2024
1 parent 2aaba5d commit f96efde
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ name: Deploy to GitHub Pages
on:
push:
branches:
- main # Change this to your default branch name if different
- main

permissions:
contents: write # Add this permissions block

jobs:
deploy:
Expand All @@ -12,6 +15,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
persist-credentials: false # Add this line

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -28,6 +33,6 @@ jobs:
- name: Deploy to GitHub Pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist # Vite builds to the dist folder by default
folder: dist
branch: gh-pages
clean: true

0 comments on commit f96efde

Please sign in to comment.