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 @@