Skip to content

Commit

Permalink
Create main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tzafrirhn authored Feb 12, 2024
1 parent fd78f82 commit ff31589
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Deploy to AWS S3
on:
workflow_run:
workflows: ["Integration Pipeline"]
types:
- completed

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: Download a Build Artifact
uses: actions/[email protected]

- name: Extract Files
run: tar -xvf ILCore.tar

- name: Deploy static site to S3 bucket
run: aws s3 sync ./output s3://igpublisher-static-dev --delete

0 comments on commit ff31589

Please sign in to comment.