Skip to content

Commit

Permalink
modified build_and_deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh-s-sawant committed Aug 20, 2024
1 parent cf76f30 commit 5996899
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build Documentation
name: Build & Deploy Documentation

on:
push:
Expand Down Expand Up @@ -36,23 +36,17 @@ jobs:
run: git status

- name: Upload documentation artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v4
with:
name: documentation
path: Docs/build/html

deploy:
runs-on: ubuntu-latest
needs: build
if: github.event_name == 'push' && github.ref == 'refs/heads/development'
steps:
- name: deploy to gh-pages
uses: actions/deploy-pages@v1
- name: deploy to gh-pages branch
uses: actions/deploy-pages@v2
with:
token: ${{ secrets.GITHUB_TOKEN }}
#uses: JamesIves/github-pages-deploy-action@v4
#with:
# repository-name: AMReX-Microelectronics/AMReX-Microelectronics.github.io
# branch: gh-pages
# folder: ${{ github.workspace }}/Docs/build/html
# clean: true
# commit-message: "Force update - $(date +'%Y-%m-%d %H:%M:%S')"

0 comments on commit 5996899

Please sign in to comment.