Skip to content

Commit

Permalink
Update to modern GitHub Pages deployment (#87)
Browse files Browse the repository at this point in the history
* Update to modern GitHub Pages deployment

* Correct artifact path
  • Loading branch information
bparks13 authored Feb 25, 2025
1 parent 6e6e8e1 commit 5bc7732
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 55 deletions.
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: Build and Test Documentation
name: Build Documentation

on:
push:
branches: [ main ]
pull_request:
branches:
- main
branches: [ main ]

jobs:
build_and_test:
name: Build and Test
build:
name: Build
runs-on: ubuntu-22.04
environment: Testing

steps:
- name: Check out repository code
Expand Down Expand Up @@ -37,9 +37,22 @@ jobs:
run: |
pipenv run make linkcheck SPHINXOPTS="-W --keep-going"
- name: Upload docs
uses: actions/upload-artifact@v4
- name: Upload GitHub Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
name: html
if-no-files-found: error
path: docs/html/*
path: docs/html/

deploy:
name: Deploy docs
runs-on: ubuntu-22.04
needs: build
if: github.event_name == 'push' && always() && !failure() && !cancelled()

permissions:
# Both required by actions/deploy-pages
pages: write
id-token: write

steps:
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v4
44 changes: 0 additions & 44 deletions .github/workflows/deploy_docs.yml

This file was deleted.

0 comments on commit 5bc7732

Please sign in to comment.