Skip to content

Commit

Permalink
feat(docs): update secrets variables names to avoid mixups
Browse files Browse the repository at this point in the history
  • Loading branch information
SamyOubouaziz committed Sep 18, 2024
1 parent 16cb17a commit 1c10dfe
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,18 +30,18 @@ jobs:
- name: Sety up AWS credentials
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
CLI_DOC_ACCESS_KEY: ${{ secrets.CLI_DOC_ACCESS_KEY }}
CLI_DOC_SECRET_KEY: ${{ secrets.CLI_DOC_SECRET_KEY }}
run: |
aws configure set aws_access_key_id $AWS_ACCESS_KEY_ID
aws configure set aws_secret_access_key $AWS_SECRET_ACCESS_KEY
aws configure set aws_access_key_id $CLI_DOC_ACCESS_KEY
aws configure set aws_secret_access_key $CLI_DOC_SECRET_KEY
aws configure set region nl-ams
- name: Upload file to Scaleway Object Storage
env:
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
S3_ENDPOINT: ${{ secrets.S3_ENDPOINT }}
CLI_DOC_BUCKET_NAME: ${{ secrets.CLI_DOC_BUCKET_NAME }}
CLI_DOC_S3_ENDPOINT: ${{ secrets.CLI_DOC_S3_ENDPOINT }}
run: |
aws s3 cp --recursive ./docs/site/ s3://$BUCKET_NAME --endpoint-url $S3_ENDPOINT
aws s3 cp --recursive ./docs/site/ s3://$CLI_DOC_BUCKET_NAME --endpoint-url $CLI_DOC_S3_ENDPOINT
- name: Delete temporary folder
run: rm -rf docs/docs/

0 comments on commit 1c10dfe

Please sign in to comment.