This repository was archived by the owner on Nov 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
46 lines (38 loc) · 1.31 KB
/
deploy.yml
File metadata and controls
46 lines (38 loc) · 1.31 KB
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
name: Deploy Demo
# Controls when the action will run.
on:
# Only run on commits from master branch
push:
branches: [ master ]
jobs:
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup Haxe & Haxelib
uses: krdlab/setup-haxe@v1
with:
haxe-version: 4.2.3
- name: Get Haxe Deps
run: haxelib install deploy.hxml --always
# Build haxe code to javascript
- name: Build
run: |
haxe -version
haxe deploy.hxml
- name: Move output to static folder
run: |
mv bin/out.js static
- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./static
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
commit_message: ${{ github.event.head_commit.message }}
keep_files: false # Whether to overwrite or not
disable_nojekyll: true # Don't make a .nojekyll file