script: use odp v1.42.1.0 #16
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: GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
env: | |
CC: gcc | |
# Default target architecture for native compilation | |
TARGET_ARCH: "" | |
jobs: | |
Documentation: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install asciidoctor mscgen graphviz doxygen | |
sudo apt-get install libconfig-dev | |
- name: Build | |
run: ./scripts/build.sh -d | |
- name: Before deploy | |
run: | | |
pushd doc | |
mkdir gh-pages | |
cp -r event_machine_api/html/* gh-pages/ | |
popd | |
- name: Deploy | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
uses: crazy-max/[email protected] | |
with: | |
allow_empty_commit: false | |
build_dir: ./doc/gh-pages | |
target_branch: gh-pages |