Skip to content

Commit

Permalink
Temporarily comment-out publishing docs in canary runs (#40921)
Browse files Browse the repository at this point in the history
There is not enough space to checkout airflow site on regular
runners so until we fix self-hosted runners, we need to skip
docs publishing.
  • Loading branch information
potiuk authored Jul 22, 2024
1 parent 6c591e5 commit 173fed0
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/static-checks-mypy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -214,41 +214,41 @@ jobs:
- name: "Building docs with ${{ matrix.flag }} flag"
run: >
breeze build-docs ${{ inputs.docs-list-as-string }} ${{ matrix.flag }}
- name: "Clone airflow-site"
run: >
git clone https://github.com/apache/airflow-site.git ${GITHUB_WORKSPACE}/airflow-site &&
echo "AIRFLOW_SITE_DIRECTORY=${GITHUB_WORKSPACE}/airflow-site" >> "$GITHUB_ENV"
if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
- name: "Publish docs"
run: >
breeze release-management publish-docs --override-versioned --run-in-parallel
${{ inputs.docs-list-as-string }}
if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
- name: "Generate back references for providers"
run: breeze release-management add-back-references all-providers
if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
- name: "Generate back references for apache-airflow"
run: breeze release-management add-back-references apache-airflow
if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
- name: "Generate back references for docker-stack"
run: breeze release-management add-back-references docker-stack
if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
- name: "Generate back references for helm-chart"
run: breeze release-management add-back-references helm-chart
if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
if: >
inputs.canary-run == 'true' &&
inputs.branch == 'main' &&
matrix.flag == '--docs-only'
with:
aws-access-key-id: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
aws-region: eu-central-1
- name: "Upload documentation to AWS S3"
if: >
inputs.canary-run == 'true' &&
inputs.branch == 'main' &&
matrix.flag == '--docs-only'
run: aws s3 sync --delete ./files/documentation s3://apache-airflow-docs
# - name: "Clone airflow-site"
# run: >
# git clone https://github.com/apache/airflow-site.git ${GITHUB_WORKSPACE}/airflow-site &&
# echo "AIRFLOW_SITE_DIRECTORY=${GITHUB_WORKSPACE}/airflow-site" >> "$GITHUB_ENV"
# if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
# - name: "Publish docs"
# run: >
# breeze release-management publish-docs --override-versioned --run-in-parallel
# ${{ inputs.docs-list-as-string }}
# if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
# - name: "Generate back references for providers"
# run: breeze release-management add-back-references all-providers
# if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
# - name: "Generate back references for apache-airflow"
# run: breeze release-management add-back-references apache-airflow
# if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
# - name: "Generate back references for docker-stack"
# run: breeze release-management add-back-references docker-stack
# if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
# - name: "Generate back references for helm-chart"
# run: breeze release-management add-back-references helm-chart
# if: inputs.canary-run == 'true' && matrix.flag == '--docs-only'
# - name: Configure AWS credentials
# uses: aws-actions/configure-aws-credentials@010d0da01d0b5a38af31e9c3470dbfdabdecca3a # v4.0.1
# if: >
# inputs.canary-run == 'true' &&
# inputs.branch == 'main' &&
# matrix.flag == '--docs-only'
# with:
# aws-access-key-id: ${{ secrets.DOCS_AWS_ACCESS_KEY_ID }}
# aws-secret-access-key: ${{ secrets.DOCS_AWS_SECRET_ACCESS_KEY }}
# aws-region: eu-central-1
# - name: "Upload documentation to AWS S3"
# if: >
# inputs.canary-run == 'true' &&
# inputs.branch == 'main' &&
# matrix.flag == '--docs-only'
# run: aws s3 sync --delete ./files/documentation s3://apache-airflow-docs

0 comments on commit 173fed0

Please sign in to comment.