Skip to content

Commit

Permalink
[ci] Fix deploy stage (#73)
Browse files Browse the repository at this point in the history
* 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
tobil4sk authored Oct 10, 2024
1 parent 8f59524 commit 4a15d0b
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
20 changes: 15 additions & 5 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -33,10 +37,10 @@ jobs:
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 install all --always --quiet
haxelib git heaps https://github.com/heapsio/heaps $HEAPS_VER
haxelib list
- name: Script
run: |
haxe build-run-dox.hxml
Expand All @@ -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
2 changes: 1 addition & 1 deletion heaps.io.hxml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
--next
-main SyntaxHighlighter
-lib markdown
-lib highlighter
-lib highlighter:0.6.1
-lib tink_template
-cp src
--macro tink.Template.addFlavor('html', '::', '::', false)
Expand Down

0 comments on commit 4a15d0b

Please sign in to comment.