Co-Authored-By: sector-a <82838084+sector-a@users.noreply.github.com> Co-Authored-By: mcagabe19 <egzozu.be.bas@gmail.com> Co-Authored-By: Mihai Alexandru <77043862+majigsaw77@users.noreply.github.com> Co-Authored-By: MoonDroid <81515012+moondroidcoder@users.noreply.github.com> Co-Authored-By: luckydog7 <59097731+luckydog7@users.noreply.github.com>
50 lines
1.6 KiB
YAML
50 lines
1.6 KiB
YAML
name: Build Game for HTML5
|
|
on: workflow_dispatch
|
|
jobs:
|
|
HTML5:
|
|
runs-on: ubuntu-24.04
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@main
|
|
with:
|
|
submodules: true
|
|
persist-credentials: false
|
|
# - name: Configure git
|
|
# run: |
|
|
# git config --global url."https://${TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"
|
|
# git config --global user.name "mcagabe19"
|
|
# git config --global user.email "egzozu.be.bas@gmail.com"
|
|
# env:
|
|
# TOKEN: ${{ secrets.GITHUB_TOKEN }} # ${{ secrets.LILY_GH_TOKEN }}
|
|
- name: Setup Haxe
|
|
uses: krdlab/setup-haxe@master
|
|
with:
|
|
haxe-version: 4.3.4
|
|
- name: Install Libraries
|
|
run: |
|
|
haxelib install hmm --quiet
|
|
haxelib run hmm install --quiet
|
|
- name: Compile
|
|
run: haxelib run lime build html5
|
|
- name: Upload Artifact
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: html5Build
|
|
path: export/release/html5/bin/*
|
|
if-no-files-found: error
|
|
- name: Upload Artifact (Only JavaScript Files)
|
|
uses: actions/upload-artifact@main
|
|
with:
|
|
name: html5Build-onlyJS
|
|
path: export/release/html5/bin/*.js
|
|
# - name: Upload To Website
|
|
# run: |
|
|
# cd ..
|
|
# git clone https://github.com/FunkinDroidTeam/funkin-0.3-html5
|
|
# cd funkin-0.3-html5
|
|
# rm -rf *
|
|
# mv ${{ github.workspace }}/export/release/html5/bin/* .
|
|
# git add .
|
|
# git commit -m "Uploaded via actions."
|
|
# git push -u origin main
|