Skip to content

Develop#87

Open
sedv8808 wants to merge 2 commits into
productionfrom
develop
Open

Develop#87
sedv8808 wants to merge 2 commits into
productionfrom
develop

Conversation

@sedv8808

@sedv8808 sedv8808 commented Jul 9, 2026

Copy link
Copy Markdown

This pull request introduces a new GitHub Actions workflow for automated deployment and makes a minor correction to the deployment script. The workflow handles deploying the Neotoma Explorer to AWS S3 and CloudFront, including backup, rollback, and cache invalidation steps.

Deployment automation:

  • Added .github/workflows/deploy.yml to automate deployment to AWS S3 and CloudFront, including backup of existing content, verification, cache invalidation, rollback on failure, and deployment status notification.

Script correction:

  • Fixed a typo in push_s3.sh to correctly exclude the push_s3.sh file during the S3 sync operation.

Copilot AI review requested due to automatic review settings July 9, 2026 21:45
@sedv8808 sedv8808 requested a review from jkerryn July 9, 2026 21:47

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR introduces a GitHub Actions-based deployment pipeline for the Neotoma Explorer static site to S3/CloudFront, and aligns the S3 sync script’s self-exclude filename with the script’s actual name.

Changes:

  • Fixes the aws s3 sync exclude entry in push_s3.sh to exclude push_s3.sh (not pushs3.sh).
  • Adds a new .github/workflows/deploy.yml workflow that deploys to S3, performs a basic verification, invalidates CloudFront, and attempts rollback on failure.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
push_s3.sh Corrects the script filename in the sync exclude list.
.github/workflows/deploy.yml Adds automated deploy/backup/verify/invalidate/rollback steps for S3 + CloudFront on branch pushes.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +3 to +6
on:
push:
branches: [production, develop]

Comment on lines +17 to +19
deploy:
runs-on: ubuntu-latest
timeout-minutes: 30
Comment on lines +42 to +50
- name: Verify S3 content
run: |
HTTP_CODE=$(curl -s -o /dev/null -w "%{http_code}" "https://${{ env.CLOUDFRONT_ALIAS }}/explorer/index.html")
if [ "$HTTP_CODE" = "200" ]; then
echo "Verification passed (HTTP $HTTP_CODE)"
else
echo "WARNING: Got HTTP $HTTP_CODE from explorer"
exit 1
fi
Comment thread push_s3.sh
@@ -1,2 +1,2 @@
#!/bin/bash
aws s3 sync . s3://apps.neotomadb.org/explorer/ --exclude '.git/*' --exclude pushs3.sh
aws s3 sync . s3://apps.neotomadb.org/explorer/ --exclude '.git/*' --exclude push_s3.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants