Skip to content

Commit

Permalink
ci: create s3.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
yongenaelf authored Oct 23, 2024
1 parent e74c9f2 commit e34e1bd
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/s3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Deploy to S3

on:
workflow_dispatch:

jobs:

build:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
cache: 'npm'
- run: npm install
- run: npm run build

- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ap-northeast-1

- name: Sync to S3
run: aws s3 sync ./build s3://${{ secrets.AWS_S3_BUCKET }}

0 comments on commit e34e1bd

Please sign in to comment.