Skip to content

Commit 999027f

Browse files
authored
[FLINK-35386][cdc][docs] Build release-3.1 documentation and mark it as stable (#3330)
1 parent d0457f7 commit 999027f

File tree

1 file changed

+17
-6
lines changed

1 file changed

+17
-6
lines changed

.github/workflows/build_docs.yml

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,37 @@ on:
3030
- release-*
3131
schedule:
3232
- cron: '0 0 * * *' # Deploy every day
33+
workflow_dispatch:
3334

3435
concurrency:
35-
group: ${{ github.workflow }}-${{ github.ref }}
36+
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
3637
cancel-in-progress: true
3738

3839
jobs:
39-
40-
markdown-link-check:
40+
check-documentation:
4141
if: github.repository == 'apache/flink-cdc'
4242
runs-on: ubuntu-latest
4343
steps:
44-
- uses: actions/checkout@master
45-
- uses: gaurav-nelson/[email protected]
44+
- uses: actions/checkout@v3
45+
- name: Check dead links
46+
uses: gaurav-nelson/[email protected]
4647
with:
4748
config-file: '.dlc.json'
49+
- name: Build documentation
50+
run: |
51+
docker run --rm --volume "$PWD:/root/flink-cdc" chesnay/flink-ci:java_8_11_17_21_maven_386 bash -c "cd /root/flink-cdc && chmod +x ./.github/workflows/docs.sh && ./.github/workflows/docs.sh"
4852
4953
build-documentation:
5054
if: github.event_name != 'pull_request' && github.repository == 'apache/flink-cdc'
55+
name: "Check and build documentation"
5156
runs-on: ubuntu-latest
5257
strategy:
5358
max-parallel: 1
5459
matrix:
5560
branch:
5661
- master
5762
- release-3.0
63+
- release-3.1
5864

5965
steps:
6066
- uses: actions/checkout@v3
@@ -69,10 +75,15 @@ jobs:
6975
7076
if [ "${currentBranch}" = "master" ]; then
7177
echo "flink_alias=release-3.2" >> ${GITHUB_ENV}
72-
elif [ "${currentBranch}" = "release-3.0" ]; then
78+
elif [ "${currentBranch}" = "release-3.1" ]; then
7379
echo "flink_alias=stable" >> ${GITHUB_ENV}
7480
fi
7581
82+
- name: Check dead links
83+
uses: gaurav-nelson/[email protected]
84+
with:
85+
config-file: '.dlc.json'
86+
7687
- name: Build documentation
7788
run: |
7889
docker run --rm --volume "$PWD:/root/flink-cdc" chesnay/flink-ci:java_8_11_17_21_maven_386 bash -c "cd /root/flink-cdc && chmod +x ./.github/workflows/docs.sh && ./.github/workflows/docs.sh"

0 commit comments

Comments
 (0)