diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..cf998fb --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,29 @@ +name: Build and deploy to github pages + +on: + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Download tic80 and build + run: | + sudo apt-get install g++ git cmake ruby-full libglvnd-dev libglu1-mesa-dev freeglut3-dev libasound2-dev -y + git clone --recursive https://github.com/nesbox/TIC-80 && cd TIC-80/build + cmake .. -DBUILD_PRO=On + sudo make install -j4 + + - name: Build windows, linux and html + run: | + tic80 --cmd="load game.lua & export html html & exit" --fs . --skip --cli + unzip html.zip -d html + + - name: Deploy on Github Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./html diff --git a/README.md b/README.md index 6c54bfb..d7c6edc 100644 --- a/README.md +++ b/README.md @@ -5,4 +5,6 @@ Just like regular tic tac toe, but you can put a larger piece on top of a smaller one! This an interesting twist on a the classic game. +You can try it out here: https://rokaspuzonas.github.io/stacked-tic-tac-toe + This was made using [TIC-80](https://tic80.com)