From 0cb8b790a22aec91cbe0bbab48a8539f2d4d82fe Mon Sep 17 00:00:00 2001 From: Michael Marchetti Date: Mon, 26 Jul 2021 13:02:50 -0400 Subject: [PATCH] don't publish docs on beta releases --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index fb06d1cb..05aac3fb 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -118,11 +118,11 @@ jobs: aws-region: us-east-1 - if: github.event_name == 'push' && github.ref == 'refs/heads/master' run: make sync-latest-docs-to-s3 - - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && (contains(github.ref, 'b') == false) uses: aws-actions/configure-aws-credentials@v1 with: aws-access-key-id: ${{ secrets.DOCS_AWS_ID }} aws-secret-access-key: ${{ secrets.DOCS_AWS_SECRET }} aws-region: us-east-1 - - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') + - if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags') && (contains(github.ref, 'b') == false) run: make promote-docs-in-s3