Skip to content

feat: save; try CI

feat: save; try CI #2

name: Deploy Ball-Game to Netlify
on:
push:
paths:
- "games/running-ball-babylonjs/**"
jobs:
build-and-deploy:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./games/running-ball-babylonjs
steps:
- name: Repository Checkout
uses: actions/checkout@v5
- name: Setup NodeJS
uses: actions/setup-node@v5
with:
node-version: 20
cache: "npm"
- name: Install Netlify
run: npm install netlify-cli -g
- name: Install Dependencies
run: npm ci
- name: Build project
run: npm run build
- name: Deploy to Netlify
id: netlify_deploy
run: |
netlify deploy \
--dir dist \
--site ${{ secrets.GAME_RUNNING_BALL_NETLIFY_PROJECT_ID }} \
--auth ${{ secrets.NETLIFY_AUTH_TOKEN }}