Skip to content

Commit

Permalink
Update jekyll-gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
thibaultsmnt authored Aug 13, 2024
1 parent e2e9449 commit 8254245
Showing 1 changed file with 35 additions and 6 deletions.
41 changes: 35 additions & 6 deletions .github/workflows/jekyll-gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Deploy Jekyll with GitHub Pages dependencies preinstalled

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]
# push:
# branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand Down Expand Up @@ -35,17 +35,46 @@ jobs:
with:
source: ./docs
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v3

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-website
path: ./_site
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ammaraskar/sphinx-action@master
with:
docs-folder: "doc/"
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: html-docs
path: doc/build/html/

# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
needs:
- build
- docs
steps:
- name: Download website
uses: actions/download-artifact@v4
with:
name: html-website
path: ./_site
- name: Download website
uses: actions/download-artifact@v4
with:
name: html-docs
path: ./_site/doc
- name: Upload artifact
uses: actions/upload-pages-artifact@v4
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 8254245

Please sign in to comment.