Skip to content

Instantly share code, notes, and snippets.

@EngineerSmith
Created March 24, 2025 15:22
Show Gist options
  • Save EngineerSmith/75bd90103e994a2fcb2b7d1987a4b5be to your computer and use it in GitHub Desktop.
Save EngineerSmith/75bd90103e994a2fcb2b7d1987a4b5be to your computer and use it in GitHub Desktop.
name: Build for web
on:
push:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Package repo
run: zip -r game.love . -x "/.git/*" "/.github/*" "README.md"
- name: Get love.js
run: |
npm update
npm -g i love.js
love.js --version
- name: Run love.js
run: love.js -t game -c game.love build
- uses: actions/upload-artifact@v4
with:
name: webbuild
path: build/*
- uses: actions/upload-artifact@v4
with:
name: love
path: game.love
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment