Skip to content

Commit

Permalink
[fix] Change process order
Browse files Browse the repository at this point in the history
  • Loading branch information
TakumaKira authored Dec 6, 2024
1 parent 28cc212 commit 2967c6c
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy-storybook.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,19 @@ jobs:

- name: Build Storybook
run: npm run build-storybook

- name: Fix permission
run: chmod -R 777 storybook-static

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ vars.AWS_REGION }}

- name: Deploy to S3
run: |
chmod -R 777 storybook-static
aws s3 sync storybook-static s3://${{ vars.AWS_S3_BUCKET }} --delete --debug
- name: Invalidate CloudFront
Expand Down

0 comments on commit 2967c6c

Please sign in to comment.