This fixes the final deprecation warning for ::set-output <!-- PR description--> --- #### Does this PR need a docs update or release note? - [ ] ✅ Yes, it's included - [ ] 🕐 Yes, but in a later PR - [x] ⛔ No #### Type of change <!--- Please check the type of change your PR introduces: ---> - [ ] 🌻 Feature - [ ] 🐛 Bugfix - [ ] 🗺️ Documentation - [ ] 🤖 Supportability/Tests - [x] 💻 CI/Deployment - [ ] 🧹 Tech Debt/Cleanup #### Issue(s) <!-- Can reference multiple issues. Use one of the following "magic words" - "closes, fixes" to auto-close the Github issue. --> * #<issue> #### 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@v2
|
|
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 "/*" |