-
Notifications
You must be signed in to change notification settings - Fork 110
37 lines (34 loc) · 1.12 KB
/
publish-documentation.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Publish documentation
on:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '21'
cache: 'maven'
- name: Generate documentation
run: |
rm -rf target/generated-docs
make doc
- name: Publish documentation to GitHub Pages
run: |
git config user.name "rabbitmq-ci"
git config user.email "[email protected]"
ci/publish-documentation-to-github-pages.sh
- name: Prepare worker
run: |
mkdir ci/worker/public
cp target/generated-docs/index.html ci/worker/public
- name: Publish documentation to Cloudflare
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
preCommands: npm i -D @cloudflare/kv-asset-handler
command: deploy --name perftest-dev --route https://perftest-dev.rabbitmq.com/*
workingDirectory: 'ci/worker'