Skip to content

Commit

Permalink
[FLINK-35386][cdc][docs] Build release-3.1 documentation and mark it …
Browse files Browse the repository at this point in the history
…as stable (#3317)
  • Loading branch information
GOODBOY008 committed May 17, 2024
1 parent 0fb9335 commit 4c0cafe
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,31 +30,37 @@ on:
- release-*
schedule:
- cron: '0 0 * * *' # Deploy every day
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true

jobs:

markdown-link-check:
check-documentation:
if: github.repository == 'apache/flink-cdc'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
- uses: actions/checkout@v3
- name: Check dead links
uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
with:
config-file: '.dlc.json'
- name: Build documentation
run: |
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"
build-documentation:
if: github.event_name != 'pull_request' && github.repository == 'apache/flink-cdc'
name: "Check and build documentation"
runs-on: ubuntu-latest
strategy:
max-parallel: 1
matrix:
branch:
- master
- release-3.0
- release-3.1

steps:
- uses: actions/checkout@v3
Expand All @@ -68,11 +74,16 @@ jobs:
echo "flink_branch=${currentBranch}" >> ${GITHUB_ENV}
if [ "${currentBranch}" = "master" ]; then
echo "flink_alias=release-3.1" >> ${GITHUB_ENV}
elif [ "${currentBranch}" = "release-3.0" ]; then
echo "flink_alias=release-3.2" >> ${GITHUB_ENV}
elif [ "${currentBranch}" = "release-3.1" ]; then
echo "flink_alias=stable" >> ${GITHUB_ENV}
fi
- name: Check dead links
uses: gaurav-nelson/github-action-markdown-link-check@1.0.15
with:
config-file: '.dlc.json'

- name: Build documentation
run: |
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"
Expand Down

0 comments on commit 4c0cafe

Please sign in to comment.