Skip to content

Commit

Permalink
revert to using gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
Angelyr committed Nov 21, 2024
1 parent c2985d6 commit ec1b96b
Showing 1 changed file with 23 additions and 21 deletions.
44 changes: 23 additions & 21 deletions .github/workflows/update_doxygen_pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ on:
push:

jobs:
build-doxygen:
doxygen:
runs-on: ubuntu-latest
permissions:
contents: write

steps:

Expand All @@ -17,29 +19,29 @@ jobs:
- name: Checkout Original
uses: actions/checkout@v4
with:
path: original

- name: Run Doxygen
working-directory: original
run: doxygen

- name: Upload static files as artifact
id: deployment
uses: actions/upload-pages-artifact@v3
- name: Checkout Pages
uses: actions/checkout@v4
with:
path: html/

deploy-doxygen:
needs: build-doxygen
runs-on: ubuntu-latest
permissions:
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
path: pages

- name: Set up pages directory
working-directory: pages
run: |
git checkout --orphan gh-pages
git rm -rf .
cp -r ../original/html/. .
- name: Update Github
working-directory: pages
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
git add .
git commit -m "Update page from action"
git push -f origin gh-pages

0 comments on commit ec1b96b

Please sign in to comment.