From 2967c6cbbbadc50c581f7d0da77fb95f14fdb337 Mon Sep 17 00:00:00 2001 From: Takuma Kira <50410641+TakumaKira@users.noreply.github.com> Date: Fri, 6 Dec 2024 23:33:17 +0900 Subject: [PATCH] [fix] Change process order --- .github/workflows/deploy-storybook.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index 331c5df..03e4963 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -24,6 +24,9 @@ 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 @@ -31,10 +34,9 @@ jobs: 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