Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 3 additions & 11 deletions .github/workflows/generate_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ on:
- 'docs/**'
branches:
- master
- develop

jobs:
build:
Expand Down Expand Up @@ -42,7 +41,7 @@ jobs:

# store the documentation files
- name: Upload output directory
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: doc-files
path: |
Expand All @@ -62,13 +61,13 @@ jobs:

steps:
# checkout the gh-pages branch
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: gh-pages

# download the doc files, most of which are generated above
- name: Download output directory
uses: actions/download-artifact@v2
uses: actions/download-artifact@v4
with:
name: doc-files
path: docs-temp
Expand All @@ -80,13 +79,6 @@ jobs:
rm -rf master
mv docs-temp master

# Rename the directory to master
- name: Rename the directory to develop
if: ${{ github.ref == 'refs/heads/develop' }}
run: |
rm -rf develop
mv docs-temp develop

# add, commit and push to gh-pages
- name: Commit changes
uses: EndBug/add-and-commit@v9
Expand Down
Loading