Skip to content

CI

CI #198

Workflow file for this run

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'