diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml new file mode 100644 index 00000000..cf7e686b --- /dev/null +++ b/.github/workflows/main.yaml @@ -0,0 +1,48 @@ +name: CI + +on: + push: + branches: + - master + +env: + HEAPS_VER: master + +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 less@2.7 + npm install -g less-plugin-clean-css@1.5 + haxelib install all --always + haxelib git heaps https://github.com/heapsio/heaps + haxelib list + + - name: Script + run: | + haxe build-run-dox.hxml + haxe build-samples.hxml + haxe get-wiki.hxml + haxe heaps.io.hxml + + - name: Deploy + run: haxe deploy.hxml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 302551e9..00000000 --- a/.travis.yml +++ /dev/null @@ -1,39 +0,0 @@ -language: haxe - -os: linux -dist: xenial - -env: - - HEAPS_VER=master - -haxe: - - "4.1.4" - - development - -matrix: - allow_failures: - - haxe: development - -install: - # at some point all npm needs to be in package.json - - npm install - - npm install -g uglify-js - - npm install -g less@2.7 - - npm install -g less-plugin-clean-css@1.5 - - haxelib install all --always - - haxelib git heaps https://github.com/heapsio/heaps - - haxelib list - -script: - - haxe build-run-dox.hxml - - haxe build-samples.hxml - - haxe get-wiki.hxml - - haxe heaps.io.hxml - -deploy: - provider: script - script: haxe deploy.hxml - on: - branch: master - haxe: "4.1.4" - skip_cleanup: true diff --git a/readme.md b/readme.md index 66c31438..baa4b104 100644 --- a/readme.md +++ b/readme.md @@ -1,4 +1,4 @@ -[![Build Status](https://travis-ci.org/HeapsIO/heaps.io.svg?branch=master)](https://travis-ci.org/HeapsIO/heaps.io) +![Build Status](https://github.com/HeapsIO/heaps.io/actions/workflows/main.yaml/badge.svg) # [heaps.io](https://heaps.io) website sources