edit from alan pc
https://docs.serverless-devs.com/getting-started/
- install serverless devs
npm install @serverless-devs/s -g
- configuration of this tool
s config add
- deploy
s deploy -y
# name: Deploy to gh-pages
# on:
# push:
# branches: ["main"]
# jobs:
# build-and-deploy:
# runs-on: ubuntu-latest
# permissions:
# contents: write
# steps:
# - name: Check out the repository
# uses: actions/checkout@v2
# - name: Set up Node
# uses: actions/setup-node@v3
# with:
# node-version: 22
# - name: Install dependencies
# run: npm ci
# - name: Build Next.js
# run: npm run build
# - name: Deploy to gh-pages
# uses: peaceiris/actions-gh-pages@v3
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: ./out
# branch: gh-pages