Skip to content

Commit a3b82e8

Browse files
recrwplayrenetapopova
authored andcommitted
rename branch push workflow
1 parent c37603c commit a3b82e8

File tree

2 files changed

+47
-31
lines changed

2 files changed

+47
-31
lines changed

.github/workflows/docs-branch-checks.yml

Lines changed: 0 additions & 31 deletions
This file was deleted.
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
2+
name: "Generate and Publish HTML"
3+
4+
on:
5+
push:
6+
branches:
7+
- 'dev'
8+
workflow_dispatch:
9+
10+
env:
11+
PUBLISH_TO: ${{ github.ref == 'refs/heads/dev' && 'dev' || 'prod' }}
12+
13+
jobs:
14+
15+
docs-build:
16+
name: Generate HTML
17+
uses: neo4j/docs-tools/.github/workflows/reusable-docs-build.yml@v2
18+
with:
19+
package-script: 'verify:publish'
20+
21+
docs-verify:
22+
name: Verify HTML
23+
needs: docs-build
24+
uses: neo4j/docs-tools/.github/workflows/reusable-docs-verify.yml@v2
25+
with:
26+
failOnWarnings: true
27+
28+
publish-html:
29+
name: Publish HTML
30+
needs: docs-verify
31+
runs-on: ubuntu-latest
32+
33+
steps:
34+
- name: Trigger Publish
35+
uses: peter-evans/repository-dispatch@bf47d102fdb849e755b0b0023ea3e81a44b6f570 # v2.1.2
36+
with:
37+
token: ${{ secrets.DOCS_DISPATCH_TOKEN }}
38+
repository: neo4j/docs-publish
39+
event-type: publish-html
40+
client-payload: |-
41+
{
42+
"org": "${{ github.repository_owner }}",
43+
"repo": "${{ github.event.repository.name }}",
44+
"run_id": "${{ github.run_id }}",
45+
"args": "--dryrun",
46+
"publish_env": "${{ env.PUBLISH_TO }}"
47+
}

0 commit comments

Comments
 (0)