Skip to content

Commit 46a4f1a

Browse files
committed
Fix publish docs workflow
1 parent 1bbac9c commit 46a4f1a

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/publish-docs.yaml

+11-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: "Publish Docs"
22

33
on:
4+
push:
5+
branches: [ "master" ]
46
workflow_run:
57
workflows: ["CI"]
68
branches: [master]
@@ -11,7 +13,7 @@ jobs:
1113
publishing:
1214
name: Publish Documentation
1315
runs-on: ubuntu-latest
14-
if: ${{ github.event.workflow_run.conclusion == 'success' }}
16+
if: ${{github.event.push || github.event.workflow_run.conclusion == 'success' }}
1517
steps:
1618

1719
- name: 📥 Checkout repository
@@ -39,7 +41,8 @@ jobs:
3941
workflow: ci-nix.yaml
4042
workflow_conclusion: success
4143
branch: release
42-
name: benchmarks
44+
name: benchmarks.*
45+
name_is_regexp: true
4346
path: docs/benchmarks
4447

4548
- name: 📥 Download released test-results
@@ -49,7 +52,8 @@ jobs:
4952
workflow: ci-nix.yaml
5053
workflow_conclusion: success
5154
branch: release
52-
name: test-results
55+
name: test-results.*
56+
name_is_regexp: true
5357
path: docs/benchmarks/tests
5458

5559
- name: 📥 Download released haddock documentation
@@ -102,7 +106,8 @@ jobs:
102106
workflow: ci-nix.yaml
103107
workflow_conclusion: success
104108
branch: master
105-
name: benchmarks
109+
name: benchmarks.*
110+
name_is_regexp: true
106111
path: docs/benchmarks
107112

108113
- name: 📥 Download latest test-results
@@ -112,7 +117,8 @@ jobs:
112117
workflow: ci-nix.yaml
113118
workflow_conclusion: success
114119
branch: master
115-
name: test-results
120+
name: test-results.*
121+
name_is_regexp: true
116122
path: docs/benchmarks/tests
117123

118124
- name: 📥 Download latest haddock documentation

0 commit comments

Comments
 (0)