forked from jobf/flixel-shadertoy-shader
-
Notifications
You must be signed in to change notification settings - Fork 2
47 lines (42 loc) · 1.58 KB
/
main.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
name: Build and Deploy
permissions:
contents: write
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ main ]
pull_request:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
buildHTML5:
runs-on: ubuntu-latest
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- uses: krdlab/setup-haxe@master
with:
haxe-version: 4.2.0
# Runs a set of commands using the runners shell
- name: Install Haxelib
run: |
haxelib setup ~/haxelib
haxelib install hxcpp > /dev/null
haxelib install lime
haxelib install openfl
haxelib install flixel
haxelib run lime setup flixel
haxelib run lime setup
haxelib git flixel-shadertoy-shader-lr http://github.com/sayofthelor/flixel-shadertoy-shader-lr
- name: Create Version Tag
run: echo "${{github.run_id}}" > VERSION
- name: Compile
run: cd ./sample/; haxelib run lime build Project.xml html5 --app-version="4.0.0-${{ github.run_id}}"
- name: Deploy to Pages
uses: JamesIves/github-pages-deploy-action@v4.3.3
with:
branch: web-build # The branch the action should deploy to.
folder: 'sample/export/html5/bin' # The folder the action should deploy.