Skip to content

Merge pull request #28 from mc-cloud-town/feat/dimensions-redesign #338

Merge pull request #28 from mc-cloud-town/feat/dimensions-redesign

Merge pull request #28 from mc-cloud-town/feat/dimensions-redesign #338

Workflow file for this run

name: deploy
on:
push:
branches: [main]
workflow_dispatch:
jobs:
deploy:
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
- name: Cache Next.js build
uses: actions/cache@v4
with:
path: .next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('src/**') }}
restore-keys: |
${{ runner.os }}-nextjs-${{ hashFiles('**/yarn.lock') }}-
- name: Setup Node.js v22.x
uses: actions/setup-node@v4
with:
node-version: 22
- name: Enable Corepack
run: corepack enable
- name: Cache Yarn dependencies
uses: actions/cache@v4
with:
path: |
~/.yarn/berry/cache
node_modules
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install
run: yarn install
env:
YARN_IGNORE_NODE: 1
- name: Build
run: yarn build
- name: Prepare output
run: |
cp CNAME out/CNAME
touch out/.nojekyll
- name: Fix permissions
run: |
chmod -c -R +rX "out/" | while read line; do
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './out'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4