Readd an action that I thought was redundant but wasn't #18
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @format | |
name: CI | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
persist-credentials: false | |
- name: Update libraries | |
run: sudo apt-get update | |
# Lix is a dependency of setup-flixel | |
- uses: lix-pm/setup-lix@master | |
- uses: HaxeFlixel/setup-flixel@master | |
with: | |
haxe-version: stable | |
flixel-versions: release | |
target: html5 | |
- name: Install dependencies | |
run: haxelib install scripts/dependencies.hxml --always --quiet --skip-dependencies | |
- name: Build project | |
run: haxelib run lime build html5 -final -Ddev -Drandom_username -Dtest_local | |
- name: Deploy project | |
uses: peaceiris/actions-gh-pages@v4 | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./export/html5/bin | |
force_orphan: true |