From 4269340c79c6b29cde0ad4b77860ca8f39b0995c Mon Sep 17 00:00:00 2001 From: tzafrirhn Date: Thu, 15 Feb 2024 17:01:21 +0200 Subject: [PATCH] Create DeployS3Prod.yml --- .github/workflows/DeployS3Prod.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 .github/workflows/DeployS3Prod.yml diff --git a/.github/workflows/DeployS3Prod.yml b/.github/workflows/DeployS3Prod.yml new file mode 100644 index 00000000..ddd0a7b7 --- /dev/null +++ b/.github/workflows/DeployS3Prod.yml @@ -0,0 +1,20 @@ +name: Deploy to AWS S3 - Prod +on: + workflow_dispatch: + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v1 + + - name: Configure AWS Credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} + aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} + aws-region: us-east-1 + + - name: Deploy static site to S3 bucket + run: aws s3 sync ./webroot/core s3://igpublisher-static-prod --delete