From d5205e6cf74e25d07a1263cb5244dc5892469889 Mon Sep 17 00:00:00 2001 From: Gianmarco Fraccaroli <> Date: Mon, 24 Oct 2022 10:49:10 +0200 Subject: [PATCH] ci: invalide cf cache --- .github/workflows/build-and-test-bridge.yml | 2 +- .github/workflows/build-and-test.yml | 2 +- .github/workflows/docs.yml | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-and-test-bridge.yml b/.github/workflows/build-and-test-bridge.yml index cee43b941b..f82286f1d5 100644 --- a/.github/workflows/build-and-test-bridge.yml +++ b/.github/workflows/build-and-test-bridge.yml @@ -228,7 +228,7 @@ jobs: ANOMA_TENDERMINT_WEBSOCKET_TIMEOUT: 20 ANOMA_E2E_USE_PREBUILT_BINARIES: "true" ANOMA_E2E_KEEP_TEMP: "true" - ENV_VAR_TM_STDOUT: "false" + ANOMA_TM_STDOUT: "false" ANOMA_LOG_COLOR: "false" ANOMA_MASP_PARAMS_DIR: "/home/runner/work/masp" ANOMA_LOG: "info" diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index 1c4cbd3412..3ad569a2fb 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -230,7 +230,7 @@ jobs: ANOMA_TENDERMINT_WEBSOCKET_TIMEOUT: 20 ANOMA_E2E_USE_PREBUILT_BINARIES: "true" ANOMA_E2E_KEEP_TEMP: "true" - ENV_VAR_TM_STDOUT: "false" + ANOMA_TM_STDOUT: "false" ANOMA_LOG_COLOR: "false" ANOMA_MASP_PARAMS_DIR: "/home/runner/work/masp" ANOMA_LOG: "info" diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0ba9f39b98..5304af902e 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -41,18 +41,21 @@ jobs: command: cd documentation/specs && mdbook build cache_subkey: specs cache_version: v1 + distribution_id: E2Y9R2H4P5LYED - name: Build docs folder: documentation/docs bucket: namada-docs-static-website command: cd documentation/docs && mdbook build cache_subkey: docs cache_version: v1 + distribution_id: E2T9UML53913RV - name: Build development docs folder: documentation/dev bucket: namada-dev-static-website command: cargo run --bin namada_encoding_spec && cd documentation/dev && mdbook build cache_subkey: dev cache_version: v1 + distribution_id: E6XPP5KFWXJFQ env: CARGO_INCREMENTAL: 0 @@ -127,6 +130,9 @@ jobs: - name: Publish docs if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} run: aws s3 sync ${{ matrix.make.folder }}/book/html/ s3://${{ matrix.make.bucket }} --region eu-west-1 --delete + - name: Invalidate distribution cache + if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} + run: aws cloudfront create-invalidation --distribution-id ${{ matrix.make.distribution_id }} --paths "/*" - name: Print sccache stats if: always() run: sccache --show-stats