Skip to content

Commit

Permalink
Update sphinx-builder.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienLebranchu authored Dec 10, 2024
1 parent 877efb0 commit 04ebba2
Showing 1 changed file with 12 additions and 30 deletions.
42 changes: 12 additions & 30 deletions .github/workflows/sphinx-builder.yml
Original file line number Diff line number Diff line change
@@ -1,36 +1,18 @@
name: Deploy Static Pages
name: Deploy Sphinx documentation to Pages

on:
workflow_dispatch:

push:
tags:
- '[0-9]+.[0-9]+.[0-9]+'

permissions:
contents: read
pages: write
id-token: write

concurrency:
group: "pages"
cancel-in-progress: false
branches: [main] # branch to trigger deployment

jobs:
build-n-deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
pages:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Publish
id: deployment
uses: Kjuly/sphinx-publisher@main
with:
source_root: source
build_root: build
default_lang: en
lang_mappings: |-
en:en
- id: deployment
uses: sphinx-notes/pages@v3
with:
publish: false
- uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ${{ steps.deployment.outputs.artifact }}

0 comments on commit 04ebba2

Please sign in to comment.