github pages #640
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: | |
schedule: | |
- cron: '0 0 * * *' # Auto-trigger workflow everyday at 00:00 | |
push: | |
branches: [master] | |
pull_request: | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v2 | |
- name: Update concord-dev submodule | |
run: | | |
git submodule update --init --recursive | |
git submodule update --remote | |
- name: Preparing concord-dev | |
run: | | |
make -C concord docs | |
- name: Install Doxygen-1.9.3 | |
run: | | |
echo "Install wget" | |
sudo apt install wget | |
echo "Install graphviz" | |
sudo apt install graphviz | |
echo "Fetching binary distribution" | |
wget https://sourceforge.net/projects/doxygen/files/rel-1.9.3/doxygen-1.9.3.linux.bin.tar.gz | |
echo "Extract files from tar file" | |
tar -xvf doxygen-1.9.3.linux.bin.tar.gz | |
sudo mv doxygen-1.9.3/bin/doxygen concord/ | |
- name: Doxygen Action | |
run: | | |
cd concord | |
./doxygen | |
- name: Deploy | |
uses: peaceiris/[email protected] | |
if: github.ref == 'refs/heads/master' | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: ./concord/docs/html |