Skip to content

Commit b222981

Browse files
authored
Merge pull request #17 from Arcadia-Science/kcc/fix-workflow-bug
Fix bug in publishing workflow
2 parents 6de2421 + 3d95e88 commit b222981

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/publish.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,19 @@
33

44
on:
55
workflow_dispatch:
6-
push:
7-
branches: publish
6+
pull_request:
7+
types:
8+
# Only run when a PR is closed (which includes merges).
9+
- closed
10+
branches:
11+
- publish
812

913
name: Quarto Publish
1014

1115
jobs:
1216
publish:
17+
# Run when the workflow is manually triggered or when a PR is merged.
18+
if: github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true
1319
runs-on: ubuntu-latest
1420
permissions:
1521
contents: write

index.ipynb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,14 @@
3939
"\n",
4040
"Refer to [Demo](/examples/demo.html) to learn about possible syntax."
4141
]
42+
},
43+
{
44+
"cell_type": "code",
45+
"execution_count": null,
46+
"id": "5d0510f2",
47+
"metadata": {},
48+
"outputs": [],
49+
"source": []
4250
}
4351
],
4452
"metadata": {

0 commit comments

Comments
 (0)