Skip to content

Commit

Permalink
updated gha
Browse files Browse the repository at this point in the history
  • Loading branch information
davidecrs committed Jul 21, 2024
1 parent 850137e commit 267efda
Showing 1 changed file with 16 additions and 29 deletions.
45 changes: 16 additions & 29 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
- "gh-pages"

jobs:
deploy:
build:
runs-on: ubuntu-22.04
defaults:
run:
Expand Down Expand Up @@ -45,33 +45,20 @@ jobs:

- run: sphinx-build -M html source build

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
if: github.ref == 'refs/heads/main'
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: docs/build/html
path: "docs/build/html"

# Deployment job
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@v2

# jobs:
# build:
# runs-on: ubuntu-latest
# permissions:
# contents: write
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# - name: directly build sphinx
# run:
# pip install -r requirements.txt

# - name: Upload artifacts
# uses: actions/upload-artifact@v4
# with:
# name: html-docs
# path: docs/build/html/
# - name: Deploy
# uses: peaceiris/actions-gh-pages@v3
# if: github.ref == 'refs/heads/main'
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# publish_dir: docs/build/html

0 comments on commit 267efda

Please sign in to comment.