Skip to content

Commit

Permalink
modified build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabh-s-sawant committed Aug 20, 2024
1 parent 64f22f8 commit 9a1ca31
Showing 1 changed file with 22 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ concurrency:

permissions:
contents: write # Required to read repository contents
pages: write # Required to deploy GitHub Pages

jobs:
build:
Expand All @@ -32,13 +33,26 @@ jobs:
- name: List modified files
run: git status

- name: deploy
if: github.event_name == 'push' && github.ref == 'refs/heads/development'
uses: JamesIves/github-pages-deploy-action@v4

- name: Upload documentation artifact
uses: actions/upload-pages-artifact@v1
with:
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
with:
repository-name: AMReX-Microelectronics/AMReX-Microelectronics.github.io
branch: gh-pages
folder: ${{ github.workspace }}/Docs/build/html
clean: true
deployment-environment: github-pages
commit-message: "Force update - $(date +'%Y-%m-%d %H:%M:%S')"
#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 9a1ca31

Please sign in to comment.