-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (66 loc) · 1.95 KB
/
main.yml
File metadata and controls
70 lines (66 loc) · 1.95 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
name: CI
on:
push:
pull_request:
branches:
- master
jobs:
haxelib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: krdlab/setup-haxe@v2
with:
haxe-version: 4.3.4
- name: Package Haxelib
working-directory: haxelib
run: haxe haxelib.hxml
- uses: actions/upload-artifact@v6
with:
name: feathersui-validators-haxelib
path: bin/haxelib/
if-no-files-found: error
api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: krdlab/setup-haxe@v2
with:
haxe-version: 4.0.5
- name: Set up Haxelib dependencies
run: |
haxelib install lime 7.8.0 --quiet
haxelib install openfl 8.9.7 --quiet
haxelib install dox --quiet
haxelib dev feathersui-validators ${{ github.workspace }}
- name: Build API reference
working-directory: docs
run: haxe docs.hxml
- uses: actions/upload-artifact@v6
with:
name: feathersui-validators
path: bin/api/
if-no-files-found: error
- name: Deploy to unstable
if: ${{ github.event_name != 'pull_request' }}
uses: garygrossgarten/github-action-scp@release
with:
local: bin/api
remote: api.feathersui.com/validators/unstable
host: ${{ secrets.SSH_HOST }}
username: ${{ secrets.SSH_USER }}
password: ${{ secrets.SSH_PASS }}
flash:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: krdlab/setup-haxe@v2
with:
haxe-version: 4.0.5
- name: Set up Haxelib dependencies
run: |
haxelib install lime 7.8.0 --quiet
haxelib install openfl 8.9.7 --quiet
haxelib dev feathersui-validators ${{ github.workspace }}
- name: Build Flash .swc library
run: haxelib run openfl build flash -debug