Skip to content

Commit

Permalink
Other test
Browse files Browse the repository at this point in the history
  • Loading branch information
jlaurens committed Mar 23, 2024
1 parent 8e69e93 commit 8eaa70b
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 13 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/doxygen-gh-pages-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Doxygen GitHub Pages Deploy Action (main)

on:
push:
branches:
- main
- 2024
workflow_dispatch:

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: DenverCoder1/[email protected]
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages-main
folder: documentation/html
config_file: documentation/Doxyfile
target_folder: documentation/main
Original file line number Diff line number Diff line change
Expand Up @@ -25,21 +25,16 @@ jobs:
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
uses: peaceiris/actions-gh-pages@v3
# If you're changing the branch from main,
# also change the `main` in `refs/heads/main`
# below accordingly.
if: github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./public

0 comments on commit 8eaa70b

Please sign in to comment.