-
Notifications
You must be signed in to change notification settings - Fork 108
45 lines (43 loc) · 1.23 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
name: CI
on: [push, pull_request, workflow_dispatch, repository_dispatch]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '10.x'
- uses: krdlab/setup-haxe@v1
- name: Build Docker Image
run: node scripts/docker.js buildImage
- name: Build Site
run: |
ls -lah
node scripts/docker.js buildSite
ls -lah
haxe --run RemoveRedirects
- name: Highlighting
run: |
git clone --recursive https://github.com/Gama11/Highlighter
cd Highlighter
npm install
node bin/highlighter.js ../out
cd ..
- name: Deploy Master
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{secrets.GITHUB_TOKEN}}
publish_dir: ./out
force_orphan: true
cname: haxeflixel.com
if: github.ref == 'refs/heads/master'
- name: Deploy Dev
uses: peaceiris/actions-gh-pages@v3
with:
personal_token: ${{secrets.ACCESS_TOKEN}}
publish_dir: ./out
force_orphan: true
cname: dev.haxeflixel.com
external_repository: HaxeFlixel/dev.haxeflixel.com
if: github.ref == 'refs/heads/dev'