Skip to content

Commit

Permalink
Switch to Personal Access Token for deployment - troubleshooting depl…
Browse files Browse the repository at this point in the history
…oyment issue
  • Loading branch information
joelbyrd committed Nov 24, 2024
1 parent 07157cd commit 30ab2cd
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Deploy GitHub Pages
on:
push:
branches:
- main # Change this if your default branch is not 'main'
- main # Change to your default branch if it's not "main"

jobs:
build-and-deploy:
Expand All @@ -13,11 +13,6 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20

- name: Install dependencies
run: npm ci

Expand All @@ -27,5 +22,5 @@ jobs:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
personal_token: ${{ secrets.ACCESS_TOKEN }} # Use the PAT here
publish_dir: ./dist

0 comments on commit 30ab2cd

Please sign in to comment.