-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6803d65
commit dfbdd43
Showing
1 changed file
with
3 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,37 +28,19 @@ jobs: | |
cd Docs | ||
make clean | ||
make html | ||
touch Docs/build/html/.nojekyll | ||
- name: List modified files | ||
run: | | ||
cd Docs/build/html | ||
git status | ||
- name: Add modified files to Git | ||
run: | | ||
git config user.name "GitHub Actions" | ||
git config user.email "[email protected]" | ||
git add Docs/build/html | ||
- name: Commit changes | ||
run: git commit -m "Auto-update documentation" | ||
|
||
- name: Push changes | ||
run: git push origin development | ||
|
||
deploy: | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: deploy | ||
if: github.event_name == 'push' && github.ref == 'refs/heads/development' | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
repository-name: AMReX-Microelectronics/AMReX-Microelectronics.github.io | ||
branch: gh-pages | ||
folder: Docs/build/html | ||
folder: {{runner.workspace}}/Docs/build/html | ||
clean: true | ||
commit-message: "Force update - $(date +'%Y-%m-%d %H:%M:%S')" |