diff --git a/.github/workflows/node.js.yaml b/.github/workflows/node.js.yaml index 99409ce..152e8f3 100644 --- a/.github/workflows/node.js.yaml +++ b/.github/workflows/node.js.yaml @@ -17,10 +17,20 @@ jobs: uses: borales/actions-yarn@v4 with: cmd: run build # will run `yarn build` command + - name: Upload production artifacts + uses: actions/upload-artifact@v4 + with: + name: dist + path: | + dist s3-sync: needs: yarn-build runs-on: ubuntu-latest steps: + - name: Download artifact + uses: actions/download-artifact@v4 + with: + name: dist - uses: jakejarvis/s3-sync-action@master with: args: --acl public-read --follow-symlinks --delete @@ -28,5 +38,5 @@ jobs: AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} - AWS_REGION: 'ap-northeast-1' - SOURCE_DIR: dist + AWS_REGION: "ap-northeast-1" + SOURCE_DIR: dist