From 11e061aa655c6faa538a5d1fcfec44a739b92a09 Mon Sep 17 00:00:00 2001 From: spypsy Date: Mon, 15 Jul 2024 10:22:17 +0000 Subject: [PATCH] fix: aws secrets in docs CI --- .github/workflows/publish-docs.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish-docs.yml b/.github/workflows/publish-docs.yml index d4978e5c762..68413b3ab33 100644 --- a/.github/workflows/publish-docs.yml +++ b/.github/workflows/publish-docs.yml @@ -29,12 +29,15 @@ jobs: - timeout-minutes: 25 run: | + touch .secrets + echo "AWS_ACCESS_KEY_ID=$AWS_ACCESS_KEY_ID" > .secrets + echo "AWS_SECRET_ACCESS_KEY=$AWS_SECRET_ACCESS_KEY" >> .secrets + earthly-ci --no-output ./docs/+deploy-prod \ + --secret-file-path .secrets \ --NETLIFY_AUTH_TOKEN=${{ secrets.NETLIFY_AUTH_TOKEN }} \ --NETLIFY_SITE_ID=${{ secrets.NETLIFY_SITE_ID }} \ - --COMMIT_TAG=${{ inputs.tag }} \ - --secret AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }} \ - --secret AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }} \ + --COMMIT_TAG=${{ inputs.tag }} pdf: needs: setup