Skip to content

Update ghpages.yml

Update ghpages.yml #3

Workflow file for this run

name: GitHub Pages
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
deploy:
runs-on: ubuntu-22.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3
with:
submodules: true
fetch-depth: 0
- name: 'Get Previous tag'
id: previoustag
uses: "WyriHaximus/github-action-get-previous-tag@v1"
with:
fallback: 1.0.0
- name: Set env
run: echo "VERSION=${{ steps.previoustag.outputs.tag }}" >> $GITHUB_ENV
- name: Doxygen Action
uses: mattnotmitt/[email protected]
with:
doxyfile-path: ./Doxyfile
working-directory: .
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/html