Skip to content

Creadores-Program/Html-to-CreadorCraft-Maker-GHA

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace
 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Html to CreadorCraft Maker GHA

Github Github Actions NodeJS NPM JavaScript Json

Github Action to transpile your Html5 game to CreatorCraft game on Github!

If you want to know how to create a game in CreadorCraft I recommend you check out the CreadorCraft Maker wiki you can also run many programming languages for your game!

Example Work

You need a Html5 game file .html

Action options

  • path: destination of the game files CreatorCraft (the game's manifest.json should be there when creating) required
  • pathGame: Html5 game directory if it is in your Github repo
  • pathCustomJs: additional JavaScript file directory for the Html5 game (must be in a different directory than where the CraftCreator game will be generated, same for the css)
  • pathCustomCSS: additional css to the Html5 game

Example of task:

name: CI

on: [push, pull_request]

jobs:
  build:
    runs-on: ubuntu-latest
    if: ${{ !contains(github.event.head_commit.message, '[ci skip]') }}
    steps:
      - uses: actions/checkout@v4
      - name: Scratch-CreadorCraft-Maker
        uses: Creadores-Program/[email protected]
        with:
          path: "./src" # Destinity CreadorCraft Game (this not genere manifest.json)
          pathGame: "./Game.html"
      # Pack..
      - name: CreadorCraft-Maker
        uses: Creadores-Program/[email protected]
        with:
          path: "./src"
      - name: Upload Artifact
        uses: actions/upload-artifact@v4
        with:
          name: My Game Example
          path: gameBuildCCM/TestName 1.0.0.creadorcraftgame.zip

Structure Repo:

myName/RepoGameName/

  • Game.html

  • src

    • manifest.json:
    {
     "name": "TestName",
     "description": "Test game",
     "version": "1.0.0",
     "mainHtml": "index.html",
     "mainCSS": "index.css",
     "mainJS": "main.js"
    }

CreadorCraft Maker Action

Made in Mexico.

Creadores Program © 2024

About

Github Action to package your Html5 game to CreatorCraft game!

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 92.5%
  • HTML 7.5%