Skip to content

Commit

Permalink
Config: s3 라이브러리 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
marinesnow34 authored Nov 23, 2023
1 parent b673f6e commit 7b83785
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions .github/workflows/test_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,16 +40,28 @@ jobs:
# with:
# name: build
# path: build
# - name: Upload to Cloudflare
# env:
# AWS_ACCESS_KEY_ID: ${{ secrets.CF_ACCESS_KEY_ID }}
# AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_SECRET_ACCESS_KEY }}
# AWS_DEFAULT_REGION: us-east-1
# BUCKET_NAME: ${{ secrets.CF_BUCKET_NAME }}
# ENDPOINT_URL: ${{ secrets.CF_ENDPOINT_URL }}
# run: |
# aws s3 sync build s3://$BUCKET_NAME/build \
# --endpoint-url $ENDPOINT_URL --delete --exact-timestamps
- name: Upload to Cloudflare
uses: jakejarvis/[email protected]
with:
args: --delete --exact-timestamps
env:
AWS_ACCESS_KEY_ID: ${{ secrets.CF_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.CF_SECRET_ACCESS_KEY }}
AWS_DEFAULT_REGION: us-east-1
BUCKET_NAME: ${{ secrets.CF_BUCKET_NAME }}
ENDPOINT_URL: ${{ secrets.CF_ENDPOINT_URL }}
run: |
aws s3 sync build s3://$BUCKET_NAME/build \
--endpoint-url $ENDPOINT_URL --delete --exact-timestamps
AWS_S3_ENDPOINT: ${{ secrets.CF_ENDPOINT_URL }}
AWS_REGION: us-east-1
AWS_S3_BUCKET: ${{ secrets.CF_BUCKET_NAME }}
SOURCE_DIR: 'build'
DEST_DIR: 'build'

- name: SSH and deploy
uses: appleboy/[email protected]
Expand Down

0 comments on commit 7b83785

Please sign in to comment.