Skip to content

docs: Reorganize ValidMind Library "portal" around sorted Jupyter Notebooks #490

docs: Reorganize ValidMind Library "portal" around sorted Jupyter Notebooks

docs: Reorganize ValidMind Library "portal" around sorted Jupyter Notebooks #490

name: Delete PR preview
on:
pull_request:
types: [closed]
jobs:
delete-preview:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Configure AWS credentials
run: aws configure set aws_access_key_id ${{ secrets.AWS_ACCESS_KEY_ID_STAGING }} && aws configure set aws_secret_access_key ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGING }} && aws configure set default.region us-east-1
- name: Delete PR preview
run: aws s3 rm s3://validmind-docs-staging/site/pr_previews/${{ github.head_ref }}/ --recursive && aws cloudfront create-invalidation --distribution-id ESWVTZYFL873V --paths "/*" --no-cli-pager > /dev/null