File tree Expand file tree Collapse file tree 2 files changed +47
-31
lines changed Expand file tree Collapse file tree 2 files changed +47
-31
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments