From 3599446c0f181c2333e2c8952390c36aa7e5cc9e Mon Sep 17 00:00:00 2001 From: saqibbedar Date: Thu, 10 Oct 2024 23:28:41 +0500 Subject: [PATCH] fix(deployment): resolve GitHub Pages deployment permission error --- .github/workflows/gh-pages.yml | 8 +++----- README.md | 3 +-- package-lock.json | 2 +- package.json | 2 +- 4 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 31bcc4b..926436a 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -1,10 +1,9 @@ name: Deploy Reactfolio to GitHub Pages -# Triggers the workflow on push to the main branch on: push: branches: - - main # Change this to your main branch if it's different + - main jobs: build: @@ -17,12 +16,11 @@ jobs: - name: Set up Node.js uses: actions/setup-node@v3 with: - node-version: '20.15.1' # Ensure this matches your Node version + node-version: '20.15.1' - name: Install dependencies run: npm install - # Step to modify vite.config.js to dynamically set base with the repository name - name: Update vite.config.js base value run: | REPO_NAME=$(echo ${{ github.repository }} | cut -d'/' -f2) @@ -36,4 +34,4 @@ jobs: uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./dist # This is where Vite outputs its build files + publish_dir: ./dist diff --git a/README.md b/README.md index 79ad659..fc17bf1 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@
-

Reactfolio. v1.2.0

+

Reactfolio. v1.3.0

Designed for developers looking to showcase their work with style and simplicity. @@ -35,7 +35,6 @@ Before starting, ensure you have the following installed on your machine: > **Note:** You do not need Node.js installed on your machine as the build and deployment process will be handled by GitHub Actions. -
# Getting started diff --git a/package-lock.json b/package-lock.json index e35f3b2..921f4cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "reactfolio", - "version": "1.2.0", + "version": "1.3.0", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 1560bc6..ba906cb 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "reactfolio", "private": true, - "version": "1.2.0", + "version": "1.3.0", "type": "module", "scripts": { "dev": "vite",