I have been posting my code sketches for the past year to a site.
But now that I'm trying this out with Unity-WebGL I'm working on my Windows machine. These are notes since I always forget how to do it.
- Build for WebGL in Unity. (File > Build Settings, then click WebGL and Build). Wait a few minutes.
- Open git-bash and navigate to D drive (my external DATA drive) to the Sites/everyday directory
cd /D/Sites/everyday
git pull
if i've been working on my other computers too and have made any changes there.- Make a new sub-directory with a new number sequentially
mkdir <number>
- Then I copy my webgl build from unity over to the new folder
cp -r /D/unity-games/<game name> <folder directory number>
- I usually change the page title.
vim <folder directory number>/index.html
and change the<title></title>
in line 6 - Optional: Add some secret comments near the top
<! -- something something -->
- Update the site README.md and index.html with the new total sketch number.
vim README.md
thenvim index.html
- Do the git thing
git add README.md index.html <directory number> && git commit -m 'add <dir number>' && git push