mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-06 07:16:17 +00:00
31 lines
902 B
YAML
31 lines
902 B
YAML
name: Update the documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
|
|
jobs:
|
|
Building:
|
|
runs-on: [ubuntu-latest]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Install Doxygen
|
|
run: sudo apt-get install --yes doxygen graphviz
|
|
- name: Update the docs
|
|
run: |
|
|
git clone -b gh-pages https://${GITHUB_REPO} docs
|
|
rm -rf docs/*
|
|
doxygen Doxyfile
|
|
cd docs
|
|
git config --global user.email "${GITHUB_ACTOR}@github.com";
|
|
git config --global user.name "${GITHUB_ACTOR}";
|
|
git init
|
|
git add -A;
|
|
git commit -m "Deploying the doc";
|
|
git remote add origin https://${GITHUB_ACTOR}:${GITHUB_TOKEN}@${GITHUB_REPO};
|
|
git push --force origin gh-pages;
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
GITHUB_REPO: "github.com/AnonymusRaccoon/ComSquare" |