Skip to content

Fix GitHub Pages deployment: Add .nojekyll file and update workflow #6

Fix GitHub Pages deployment: Add .nojekyll file and update workflow

Fix GitHub Pages deployment: Add .nojekyll file and update workflow #6

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [ main ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
permissions:
contents: read
pages: write
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '18'
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Build
run: |
NODE_ENV=production npm run build
touch dist/.nojekyll
ls -la dist/
ls -la dist/assets/
cat dist/index.html | grep -E "(script|link)"
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./dist
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4