Skip to content

modified build.yml

modified build.yml #37

Workflow file for this run

name: Build Documentation
on:
push:
branches: [development]
concurrency:
group: ${{ github.ref }}-${{ github.head_ref }}-ci-workflow
cancel-in-progress: true
permissions:
contents: write # Required to read repository contents
pages: write # Required to deploy GitHub Pages
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
python3 -m pip install -r Docs/requirements.txt
- name: Build documentation
run: |
cd Docs
make clean
make html
touch build/html/.nojekyll
- name: List modified files
run: git status
- 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:
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')"