Skip to content

Commit

Permalink
Uncomment AWS setup
Browse files Browse the repository at this point in the history
Signed-off-by: Addisu Z. Taddese <addisu@openrobotics.org>
  • Loading branch information
azeey committed Jul 1, 2024
1 parent 648b24e commit 6b341de
Showing 1 changed file with 16 additions and 18 deletions.
34 changes: 16 additions & 18 deletions .github/workflows/nightly-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,33 +64,31 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4
# - name: Configure AWS Credentials
# id: creds
# uses: aws-actions/configure-aws-credentials@v4
# with:
# aws-region: us-east-1
# role-to-assume: arn:aws:iam::200670743174:role/github-oidc-deployment-gz-web-app
- name: Configure AWS Credentials
id: creds
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-east-1
role-to-assume: arn:aws:iam::200670743174:role/github-oidc-deployment-gz-web-app
- uses: actions/download-artifact@v4
id: download
with:
path: .api-docs
pattern: api-docs-*
merge-multiple: true
- name: Display structure of downloaded files
run: ls -Ra
- name: 'Restructure API Docs'
run: python3 tools/restructure_doxygen_artifacts.py ${{steps.download.outputs.download-path}} .api-out
- uses: actions/upload-artifact@v4
with:
name: api-docs
path: .api-out/*
# - name: Run nightly upload
# run: aws s3 sync --dry-run .api-out/ s3://gazebosim.org/api/
# shell: bash
# env:
# AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
# AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
# AWS_SESSION_TOKEN: ${{ steps.creds.outputs.aws-session-token }}
# - name: Invalidate Cloudfront distribution
# run: |
# aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths '/*' --region us-east-1
- name: Run nightly upload
run: aws s3 sync --dry-run .api-out/ s3://gazebosim.org/api/
shell: bash
env:
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
AWS_SESSION_TOKEN: ${{ steps.creds.outputs.aws-session-token }}
- name: Invalidate Cloudfront distribution
run: |
aws cloudfront create-invalidation --distribution-id ${{ secrets.CLOUDFRONT_DISTRIBUTION_ID }} --paths '/*' --region us-east-1

0 comments on commit 6b341de

Please sign in to comment.