Skip to content

Commit 455e77a

Browse files
committed
harden GitHub Pages publishing workflow
1 parent 0dfb87f commit 455e77a

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/docs.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ permissions:
2121

2222
concurrency:
2323
group: pages
24-
cancel-in-progress: false
24+
cancel-in-progress: true
2525

2626
jobs:
2727
build:
@@ -52,15 +52,16 @@ jobs:
5252
enablement: true
5353

5454
- name: Build documentation
55-
run: mkdocs build --strict --site-dir site
55+
run: |
56+
mkdocs build --strict --site-dir site
57+
touch site/.nojekyll
5658
5759
- name: Upload Pages artifact
5860
uses: actions/upload-pages-artifact@v5
5961
with:
6062
path: site
6163

6264
deploy:
63-
if: github.event_name == 'push'
6465
needs: build
6566
runs-on: ubuntu-latest
6667
environment:

0 commit comments

Comments
 (0)