From f96efdef4ad9c5642c080ac931f5f3844d5da718 Mon Sep 17 00:00:00 2001 From: Amaan-Samar Date: Wed, 30 Oct 2024 02:21:26 -0700 Subject: [PATCH] Update workflow permissions --- .github/workflows/deploy.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 0ac3bd0..fc55bb4 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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: @@ -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 @@ -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