Update SustainTrail.hx #402
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Game for HTML5 | |
on: | |
push: | |
branches: [ main, develop ] | |
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.6 | |
- 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 Static Repo | |
# run: | | |
# cd .. | |
# git clone https://github.com/VsFreyaDevs/vsfreya-static.git | |
# cd vsfreya-static | |
# rm -rf * | |
# mv ${{ github.workspace }}/export/release/html5/bin/* . | |
# git add . | |
# git commit -m "deploying the freya" | |
# git push -u origin main |