Skip to content

Commit ba04a1f

Browse files
committed
Adjust workflow to better match gh-pages deploy examples
1 parent da8e5a1 commit ba04a1f

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/build_pages.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ permissions: {}
1212

1313
jobs:
1414
# Build job
15-
build:
15+
build-sphinx:
1616
runs-on: ubuntu-latest
1717
permissions:
1818
contents: read
@@ -37,11 +37,10 @@ jobs:
3737
- name: Upload distribution artifacts
3838
uses: actions/upload-pages-artifact@v5
3939
with:
40-
name: sphinx-html-site
4140
path: _build/html/
4241

43-
deploy:
44-
needs: build
42+
deploy-pages:
43+
needs: build-sphinx
4544
if: ${{ github.ref == 'refs/heads/main' }}
4645

4746
# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
@@ -60,5 +59,3 @@ jobs:
6059
- name: Deploy to GitHub Pages
6160
id: deployment
6261
uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action
63-
with:
64-
artifact-name: "sphinx-html-site"

0 commit comments

Comments
 (0)