-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Schedule daily deployments This means that even if the content in this repository doesn't change, the website can still be deployed if the wiki content changes. The deployment will occur daily at 06:00 UTC
- Loading branch information
Showing
2 changed files
with
16 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,12 +2,16 @@ name: CI | |
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
pull_request: | ||
schedule: | ||
- cron: '0 6 * * *' | ||
|
||
env: | ||
HEAPS_VER: master | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
deploy-website: | ||
runs-on: ubuntu-latest | ||
|
@@ -33,10 +37,10 @@ jobs: | |
npm install -g uglify-js | ||
npm install -g [email protected] | ||
npm install -g [email protected] | ||
haxelib install all --always | ||
haxelib git heaps https://github.com/heapsio/heaps | ||
haxelib install all --always --quiet | ||
haxelib git heaps https://github.com/heapsio/heaps $HEAPS_VER | ||
haxelib list | ||
- name: Script | ||
run: | | ||
haxe build-run-dox.hxml | ||
|
@@ -45,4 +49,10 @@ jobs: | |
haxe heaps.io.hxml | ||
- name: Deploy | ||
if: github.ref == 'refs/heads/master' | ||
run: haxe deploy.hxml | ||
env: | ||
GHP_EMAIL: "${{ github.actor_id }}+${{ github.actor }}@users.noreply.github.com" | ||
GHP_USERNAME: ${{ github.actor }} | ||
GHP_CNAME: heaps.io | ||
GHP_REMOTE: https://${{ github.actor }}:${{ github.token }}@github.com/${{ github.repository }}.git |
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