Skip to content

update action

update action #1

# This is a basic workflow to help you get started with Actions
name: Doxygen Action main
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
push:
branches: [ main ]
jobs:
status:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- run: echo format('event{0} ${{ github.event_name }}', ':')
- run: echo format('os{0} ${{ runner.os }}', ':')
- run: echo format('repository{0} ${{ github.repository }}', ':')
- run: echo format('branch{0} ${{ github.ref }}', ':')
build:
needs: status
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- name: Check out repository code
uses: actions/checkout@v4
- name: Doxygen Action
uses: mattnotmitt/doxygen-action@v1.9.8
with:
working-directory: '.'
doxyfile-path: 'documentation/DoxyFile'
# Deploy job, see https://github.com/actions/deploy-pages
deploy:
# Add a dependency to the build job
needs: build
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
pages: write # to deploy to Pages
id-token: write # to verify the deployment originates from an appropriate source
# Deploy to the github-pages environment
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}/main/C
# Specify runner + deployment step
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action