## Description This takes care of validating all the release artifacts once we have completed the release step. Reworks https://github.com/alcionai/corso/pull/1360 as we are still deciding on Windows docker images. ## Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Test - [x] 💻 CI/Deployment - [ ] 🐹 Trivial/Minor ## Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * fixes https://github.com/alcionai/corso/issues/1328 ## Test Plan <!-- How will this be tested prior to merging.--> - [x] 💪 Manual - [ ] ⚡ Unit test - [ ] 💚 E2E
46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
name: Publish Website
|
|
|
|
inputs:
|
|
aws-iam-role:
|
|
description: IAM role for connecting to AWS
|
|
bucket:
|
|
description: Bucket to push the website files
|
|
cfid:
|
|
description: Cloudfront ID for invalidation
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/download-artifact@master
|
|
name: Download website from build step
|
|
with:
|
|
name: website
|
|
path: website/build
|
|
|
|
- name: Configure AWS credentials
|
|
uses: aws-actions/configure-aws-credentials@v1
|
|
with:
|
|
role-to-assume: ${{ inputs.aws-iam-role }}
|
|
role-session-name: integration-testing
|
|
aws-region: us-east-1
|
|
|
|
- name: Add rotbots.txt
|
|
if: github.ref == 'refs/heads/asset-validation-explore'
|
|
working-directory: website
|
|
shell: bash
|
|
run: |
|
|
printf 'User-agent: *\nDisallow: /' > build/robots.txt
|
|
|
|
- name: Push website
|
|
working-directory: website
|
|
shell: bash
|
|
run: |
|
|
aws s3 sync build "s3://${{ inputs.bucket }}" --delete
|
|
|
|
- name: Invalidate cloudfront
|
|
working-directory: website
|
|
shell: bash
|
|
run: |
|
|
aws cloudfront create-invalidation --distribution-id ${{ inputs.cfid }} --paths "/*" |