generated from HaxeFlixel/game-jam-template
-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (37 loc) · 1.23 KB
/
main.yml
File metadata and controls
39 lines (37 loc) · 1.23 KB
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
name: CI
on: [push, pull_request, workflow_dispatch, repository_dispatch]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
- run: sudo apt-get update
- uses: lix-pm/setup-lix@master
- uses: krdlab/setup-haxe@v1
- uses: actions/checkout@v2
with:
repository: axolstudio/flixel-addons
path: flixel-addons
token: ${{secrets.PAT}}
- uses: actions/checkout@v2
with:
repository: axolstudio/axollib
path: axollib
token: ${{secrets.PAT}}
- run: haxelib install lime 8.0.0 --quiet
- run: haxelib install openfl 9.2.0 --quiet
- run: haxelib install flixel --quiet
- run: haxelib dev flixel-addons flixel-addons --quiet
- run: haxelib dev axollib axollib --quiet
- run: haxelib git djFlixel https://github.com/john32b/djFlixel
- name: Build
run: haxelib run lime build html5 -final
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: ./export/html5/bin
force_orphan: true
if: github.ref == 'refs/heads/master'