Skip to content

Commit

Permalink
First publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
ajelenak committed Apr 6, 2024
1 parent 7791a30 commit 8d7605c
Showing 1 changed file with 20 additions and 9 deletions.
29 changes: 20 additions & 9 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages
name: Publish docs to GitHub Pages

on:
# Runs on pushes targeting the default branch
Expand All @@ -22,22 +21,34 @@ concurrency:
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install sphinx env
run: python -m pip -r docs/requirements.txt
- name: Build documentation
run: sphinx-build -b html -a -W -T docs _pages
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
uses: actions/upload-pages-artifact@v4
with:
# Upload entire repository
path: '.'
path: ./_pages

deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 8d7605c

Please sign in to comment.