Skip to content

Merge branch 'website' of https://github.com/Keyyard/create-mc-bedroc… #26

Merge branch 'website' of https://github.com/Keyyard/create-mc-bedroc…

Merge branch 'website' of https://github.com/Keyyard/create-mc-bedroc… #26

name: Deploy static site from website branch
on:
push:
branches:
- website
workflow_dispatch:
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 18
- name: Install dependencies
run: npm ci
- name: Build static site
run: npm run build
- name: Copy static output to root
run: |
cp -r out/* .
cp -r out/.* . || true
- name: Clean up build artifacts
run: rm -rf out .next
- name: Commit and push static site
run: |
git config --global user.name 'github-actions[bot]'
git config --global user.email 'github-actions[bot]@users.noreply.github.com'
git add .
git commit -m "Deploy static site [skip ci]" || echo "No changes to commit"
git push