-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (52 loc) · 1.68 KB
/
build-game-html5.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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