Skip to content

improved movement

improved movement #21

name: Deploy to Vercel
on:
push:
branches: [master] # or your deployment branch
workflow_dispatch:
env:
GODOT_VERSION: 4.4.1
EXPORT_NAME: too-fishy
PROJECT_PATH: .
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
jobs:
Export-And-Deploy:
runs-on: ubuntu-22.04
container:
image: barichello/godot-ci:4.4.1
steps:
- name: Checkout
uses: actions/checkout@v4
with:
lfs: true
- name: Setup
run: |
mkdir -v -p ~/.local/share/godot/export_templates/
mv /root/.local/share/godot/export_templates/${GODOT_VERSION}.stable ~/.local/share/godot/export_templates/${GODOT_VERSION}.stable
- name: Web Build
run: |
mkdir -v -p build
cd $PROJECT_PATH
godot --headless --verbose --export-release "Web" "./build/index.html"
- name: List build contents
run: |
echo "Build directory contents:"
ls -la build/
- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: "18"
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Deploy to Vercel
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
run: |
vercel deploy ./build --token $VERCEL_TOKEN --yes --prod