mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-30 23:14:37 +00:00
- Fixed the spelling of "reminisces" in the README.md file. - Updated Node.js version from 20 to 24 in the GitHub Actions workflow for lander pages. - Changed yarn install command to use --non-interactive for smoother CI execution.
60 lines
1.3 KiB
YAML
60 lines
1.3 KiB
YAML
name: Deploy lander to GitHub Pages
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
paths:
|
|
- "lander/**"
|
|
- ".github/workflows/lander-pages.yml"
|
|
workflow_dispatch:
|
|
|
|
permissions:
|
|
contents: read
|
|
pages: write
|
|
id-token: write
|
|
|
|
concurrency:
|
|
group: "github-pages"
|
|
cancel-in-progress: false
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 24
|
|
|
|
- name: Configure Pages
|
|
uses: actions/configure-pages@v5
|
|
|
|
- name: Install dependencies
|
|
# run: cd lander && yarn install --frozen-lockfile
|
|
run: cd lander && yarn install --non-interactive
|
|
|
|
- name: Build (static export)
|
|
run: |
|
|
cd lander
|
|
yarn build
|
|
|
|
# If Next doesn't emit `out/` automatically, fall back to `next export`.
|
|
if [ ! -d out ]; then
|
|
./node_modules/.bin/next export --out-dir out
|
|
fi
|
|
|
|
# GitHub Pages custom domain support: CNAME must be present at the site root.
|
|
echo "tryopenhuman.com" > out/CNAME
|
|
|
|
- name: Upload Pages artifact
|
|
uses: actions/upload-pages-artifact@v3
|
|
with:
|
|
path: "lander/out"
|
|
|
|
- name: Deploy to GitHub Pages
|
|
id: deployment
|
|
uses: actions/deploy-pages@v4
|