Skip to content

Commit

Permalink
workflow in one job to avoid delay
Browse files Browse the repository at this point in the history
  • Loading branch information
xavierr committed Jan 17, 2024
1 parent 5b488c6 commit 59e22b6
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions .github/workflows/doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand Down Expand Up @@ -46,29 +49,17 @@ jobs:
git commit -m "Automatic update of github pages"
git push origin master
sphinx-build:

needs: updatepages

runs-on: ubuntu-latest

permissions:
contents: write

steps:
- name: checkout repository
uses: actions/checkout@v4

- name: Build HTML
uses: ammaraskar/sphinx-action@master
with:
docs-folder: "sphinx/"

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: documentationHTML
path: sphinx/_build/html/

- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.ref == 'refs/heads/master'
Expand Down

0 comments on commit 59e22b6

Please sign in to comment.