plano/.github/workflows/static.yml
Salman Paracha 976b2eaae0
fixing docs so that GH pages picks up the right CNAME for DNS (#135)
* fixing docs so that GH pages picks up the right CNAME for DNS

* updating workflow to pick CNAME

* making sure to correctly set permissions on the build/html directory

* fixing GH actions issues with CNAME

* updated docker build command to run as local user

* fixed the CNAME issue and udpated GH actions

---------

Co-authored-by: Salman Paracha <salmanparacha@MacBook-Pro-261.local>
2024-10-07 11:03:02 -07:00

35 lines
970 B
YAML

name: Build and Deploy Documentation
on:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
# Check out the code from the repository
- name: Checkout repository
uses: actions/checkout@v3
# Set up Docker
- name: Set up Docker
uses: docker/setup-buildx-action@v2
# Build and run the Docker container to generate the documentation
- name: Build documentation using Docker
run: |
cd ./docs
chmod +x build_docs.sh
./build_docs.sh
- name: Copy CNAME to HTML Build Directory
run: cp docs/CNAME docs/build/html/CNAME
# Deploy the docs to GitHub Pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/build/html # Adjust this path based on where the HTML is generated
publish_branch: gh-pages