Skip to content

Commit 28f9dd5

Browse files
committed
WIP: debugging page deployement x2
1 parent 7cc103c commit 28f9dd5

File tree

1 file changed

+24
-6
lines changed

1 file changed

+24
-6
lines changed

.github/workflows/documentation.yml

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,16 @@ on: [push, pull_request, workflow_dispatch]
44

55
permissions:
66
contents: write
7+
pages: write
8+
id-token: write
79

10+
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
11+
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
12+
concurrency:
13+
group: "pages"
14+
cancel-in-progress: false
15+
16+
817
jobs:
918
build-source:
1019
runs-on: windows-latest
@@ -111,9 +120,14 @@ jobs:
111120
path: ${{ github.workspace }}/_build
112121

113122

123+
# Run only on pushes to the default branch
114124
page-deployement:
125+
environment:
126+
name: github-pages
127+
url: ${{ steps.deployment.outputs.page_url }}
115128
runs-on: ubuntu-latest
116129
needs: build-docs
130+
if: github.ref == 'refs/heads/main'
117131

118132
steps:
119133
- name: Checkout repository
@@ -125,9 +139,13 @@ jobs:
125139
name: __build_sphx_docs__
126140
path: ${{github.workspace}}/_build
127141

128-
# TODO: debug
129-
- name: Debug
130-
run: |
131-
ls -la ${{github.workspace}}
132-
ls -la ${{github.workspace}}/_build
133-
ls -la ${{github.workspace}}/_build/html
142+
- name: Setup Pages
143+
uses: actions/configure-pages@v5
144+
- name: Upload artifact
145+
uses: actions/upload-pages-artifact@v3
146+
with:
147+
# Upload entire repository
148+
path: '.'
149+
- name: Deploy to GitHub Pages
150+
id: deployment
151+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)