Skip to content

Commit c8b5129

Browse files
Update deployment
1 parent df4c896 commit c8b5129

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/docs-ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ jobs:
1414
test-blocks:
1515
name: Test doc code blocks
1616
runs-on: ubuntu-latest
17+
continue-on-error: true
1718

1819
steps:
1920
- name: Checkout docs repo

.github/workflows/docs-deploy-pages.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
name: docs-deploy-pages
22

33
on:
4+
workflow_dispatch:
45
workflow_run:
56
workflows: ["docs-ci"]
67
types: [completed]
@@ -18,8 +19,9 @@ jobs:
1819
deploy:
1920
name: Deploy docs to GitHub Pages
2021
if: >
21-
github.event.workflow_run.conclusion == 'success' &&
22-
github.event.workflow_run.head_branch == 'main'
22+
github.event_name == 'workflow_dispatch' ||
23+
(github.event.workflow_run.conclusion == 'success' &&
24+
github.event.workflow_run.head_branch == 'main')
2325
runs-on: ubuntu-latest
2426
environment:
2527
name: github-pages
@@ -29,7 +31,7 @@ jobs:
2931
- name: Checkout docs repo at tested commit
3032
uses: actions/checkout@v4
3133
with:
32-
ref: ${{ github.event.workflow_run.head_sha }}
34+
ref: ${{ github.event_name == 'workflow_dispatch' && github.sha || github.event.workflow_run.head_sha }}
3335

3436
- name: Set up Python
3537
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)