From 173fed0ce3e41f2ab730306cf21d39659b0a5234 Mon Sep 17 00:00:00 2001 From: Jarek Potiuk Date: Mon, 22 Jul 2024 08:55:12 +0200 Subject: [PATCH] Temporarily comment-out publishing docs in canary runs (#40921) 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. --- .github/workflows/static-checks-mypy-docs.yml | 76 +++++++++---------- 1 file changed, 38 insertions(+), 38 deletions(-) diff --git a/.github/workflows/static-checks-mypy-docs.yml b/.github/workflows/static-checks-mypy-docs.yml index f517eb6a97815..0b057e6fbf53a 100644 --- a/.github/workflows/static-checks-mypy-docs.yml +++ b/.github/workflows/static-checks-mypy-docs.yml @@ -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