GitHub pages
Check GitHub pages official guide to configure it properly.
GitHub action example:
name: Build & Deploy
on:
workflow_dispatch:
push:
branches:
- master
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: 16
- name: Installing packages
run: npm ci
- name: Build Nuxt 3 static site
run: npx nuxt generate
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./dist
You probably need to configure prefix for your website, visit customization page for details.