Files
Next_Station_Plugin/.github/workflows/main.yml
2025-09-20 08:23:24 +02:00

50 lines
1.2 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
name: Build Roblox-ts Project
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
# 1. Récupération du code
- name: Checkout repo
uses: actions/checkout@v5
# 2. Setup Node.js (pour roblox-ts)
- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 18
# 3. Installer les dépendances npm
- name: Install dependencies
run: npm ci
# 4. Build roblox-ts (compile TS → Luau)
- name: Build project
run: npm run build
# 5. Installer Rojo (CLI)
- name: Install Rojo
run: |
curl -L https://github.com/rojo-rbx/rojo/releases/download/v7.4.1/rojo-7.4.1-linux.zip -o rojo.zip
unzip rojo.zip -d rojo
sudo mv rojo/rojo /usr/local/bin/rojo
rojo --version
# 6. Générer un fichier modèle (rbxm / rbxlx)
- name: Build Roblox model
run: rojo build --output plugin.rbxm
# 7. Sauvegarder loutput comme artifact
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: roblox-build
path: plugin.rbxm