Skip to content

Commit

Permalink
feature: Create GH workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Marko authored and Marko committed Mar 15, 2024
1 parent edf4d9a commit 86ffdcd
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/bucket-deploy.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Deploy To AWS S3

# on:
# push:
# branches:
# - main
on:
pull_request:
types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Set 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: eu-north-1
- name: Deploy to S3
run: aws s3 sync ./logos s3://${{ secrets.S3_BUCKET_NAME }} --delete

0 comments on commit 86ffdcd

Please sign in to comment.