Use git version of markdown #12
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
name: CI | |
on: [push, pull_request] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
# we need full git history for article dates | |
fetch-depth: 0 | |
- name: Setup Haxe | |
uses: krdlab/setup-haxe@v1 | |
with: | |
haxe-version: 4.3.5 | |
# we are using this version in order to build vscode-textmate | |
- name: Setup Node | |
uses: actions/setup-node@v1 | |
- name: Install | |
# at some point all npm needs to be in package.json | |
run: | | |
npm install | |
npm install -g [email protected] | |
npm install -g [email protected] | |
haxelib install CodeCookBook-neko.hxml --always --quiet | |
haxelib install highlighting.hxml --always --quiet | |
haxelib git markdown https://github.com/HaxeFoundation/haxe-markdown | |
haxelib list | |
- name: Setup Pages | |
id: pages_config | |
uses: actions/configure-pages@v5 | |
- name: Generate website | |
run: | | |
haxe CodeCookBook-neko.hxml | |
haxe highlighting.hxml | |
env: | |
GHP_ROOT: ${{steps.pages_config.outputs.base_url}} | |
- name: Upload artifact | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: ./output | |
deploy: | |
if: github.ref == 'refs/heads/master' | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
runs-on: ubuntu-latest | |
needs: build | |
environment: | |
name: github-pages | |
url: ${{steps.deployment.outputs.page_url}} | |
steps: | |
- name: Deploy artifact | |
id: deployment | |
uses: actions/deploy-pages@v4 |