Skip to content

Commit

Permalink
9273-bugs-on-the-registry-due-the-home-page-project
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jun 14, 2024
1 parent 4cc3c57 commit 2369792
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 15 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/prod-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ jobs:
uses: reggionick/s3-deploy@v4
with:
folder: dist
bucket: ${{ env.AWS_BUCKET }}
bucket: ${{ env.FALLBACK_AWS_BUCKET }}
bucket-region: ${{ secrets.AWS_REGION }}
dist-id: ${{ env.CLOUDFRONT_DIST_ID }}
dist-id: ${{ env.FALBACK_CLOUDFRONT_DIST_ID }}
invalidation: /
delete-removed: true
no-cache: true
Expand Down Expand Up @@ -126,20 +126,15 @@ jobs:
run: |
git fetch --tags
git checkout ${{ github.event.inputs.version }}
- name: Set environment variables
run: |
echo "AWS_BUCKET=${{ secrets.PROD_AWS_BUCKET }}" >> $GITHUB_ENV
echo "CLOUDFRONT_DIST_ID=${{ secrets.PROD_CLOUDFRONT_DIST_ID }}" >> $GITHUB_ENV
- name: Upload HTML to S3
uses: reggionick/s3-deploy@v4
with:
folder: dist
bucket: ${{ env.AWS_BUCKET }}
bucket: ${{ env.PROD_AWS_BUCKET }}
bucket-region: ${{ secrets.AWS_REGION }}
dist-id: ${{ env.CLOUDFRONT_DIST_ID }}
dist-id: ${{ env.PROD_CLOUDFRONT_DIST_ID }}
invalidation: /
delete-removed: true
no-cache: true
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/qa-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ jobs:
with:
folder: dist
bucket: orcid-qa-public-page
bucket-region: 'us-east-1'
dist-id: 'E3AOMNP9201N9Z'
bucket-region: ${{ secrets.AWS_REGION }}
dist-id: ${{secrets.QA_CLOUDFRONT_DIST_ID}}
invalidation: /
delete-removed: true
no-cache: true
Expand All @@ -77,7 +77,7 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
AWS_REGION: '${{ secrets.AWS_REGION }}
release_prod_wordpress_new_version:
Expand Down Expand Up @@ -168,4 +168,4 @@ jobs:
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
AWS_REGION: 'us-east-1'
AWS_REGION: ${{ secrets.AWS_REGION }}
2 changes: 1 addition & 1 deletion wordpress-prod-release-validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def validate_assets(url, version, github_writer, env):
break
else:
if attempt < max_retries - 1:
github_writer.write_summary(f"Version {version} not found. Retrying... ({attempt + 1}/{max_retries})", env)
github_writer.write_summary(f"Version {version} not found. Retrying... ({attempt + 1}/{max_retries})")
time.sleep(5)
response = fetch_url(session, url)
if not response:
Expand Down

0 comments on commit 2369792

Please sign in to comment.