Skip to content

Commit

Permalink
Update deploy-ghpages CI script
Browse files Browse the repository at this point in the history
- Remove npm run test
- Ensure out dir is created
- Add some comments

Signed-off-by: Randy <randymoralesg@gmail.com>
  • Loading branch information
randymorales committed Aug 8, 2024
1 parent 6bf3d90 commit 03fa497
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/deploy-ghpages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,22 @@ jobs:
node-version: ${{ matrix.node-version }}

- run: npm ci --legacy-peer-deps

# Build the project
- run: npm run build
env:
NEXT_PUBLIC_BASE_PATH: /nextjs-deploy

# Ensure that the ./out/ directory exists
- run: mkdir -p ./out

# Create .nojekyll file to prevent GitHub Pages from ignoring files that start with an underscore
- run: touch ./out/.nojekyll

# Create the CNAME file if necessary
- run: echo randymorales.dev > ./out/CNAME

# Deploy to GitHub Pages
- name: Deploy 🚀
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
Expand Down

0 comments on commit 03fa497

Please sign in to comment.