-
Notifications
You must be signed in to change notification settings - Fork 19
57 lines (48 loc) · 1.43 KB
/
main.yaml
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
name: CI
on:
push:
pull_request:
workflow_dispatch:
env:
HEAPS_VER: master
permissions:
contents: write
jobs:
deploy-website:
runs-on: ubuntu-latest
steps:
- name: Setup Checkout Repository
uses: actions/checkout@v4
with:
submodules: true
# we are using this version in order to build vscode-textmate
- name: Setup Node
uses: actions/setup-node@v1
- name: Setup Haxe
uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.3.4
- name: Install
# at some point all npm needs to be in package.json
run: |
npm install
npm install -g uglify-js
npm install -g [email protected]
npm install -g [email protected]
haxelib install all --always --quiet
haxelib git heaps https://github.com/heapsio/heaps $HEAPS_VER
haxelib list
- name: Script
run: |
haxe build-run-dox.hxml
haxe build-samples.hxml
haxe get-wiki.hxml
haxe heaps.io.hxml
- name: Deploy
if: github.ref == 'refs/heads/master'
run: haxe deploy.hxml
env:
GHP_EMAIL: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com"
GHP_USERNAME: ${{ github.actor }}
GHP_CNAME: heaps.io
GHP_REMOTE: https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git