Skip to content

Commit ae05a77

Browse files
committed
chore(devops): update deploy-dev workflow to use AWS credentials and deploy to S3
1 parent bc394e0 commit ae05a77

1 file changed

Lines changed: 8 additions & 15 deletions

File tree

.github/workflows/deploy-dev.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -27,20 +27,13 @@ jobs:
2727
- name: Build
2828
run: npm run build:dev
2929

30-
- name: Create directory on server
31-
uses: appleboy/ssh-action@v1.0.3
30+
- name: Configure AWS Credentials
31+
uses: aws-actions/configure-aws-credentials@v4
3232
with:
33-
host: 144.24.78.166
34-
username: ubuntu
35-
key: ${{ secrets.DEV_SERVER_PRIVATE_KEY }}
36-
script: mkdir -p /home/ubuntu/memory/memory-front
33+
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY }}
34+
aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_KEY }}
35+
aws-region: ap-northeast-2
3736

38-
- name: Deploy to Server
39-
uses: appleboy/scp-action@v0.1.7
40-
with:
41-
host: 144.24.78.166
42-
username: ubuntu
43-
key: ${{ secrets.DEV_SERVER_PRIVATE_KEY }}
44-
source: "dist/*"
45-
target: "/home/ubuntu/memory/memory-front"
46-
strip_components: 1
37+
- name: Deploy to S3
38+
run: |
39+
aws s3 sync dist/ s3://dev.mymemory.co.kr --delete

0 commit comments

Comments
 (0)