From 07ec61790892f68ade02d57fc12daa067bbd686b Mon Sep 17 00:00:00 2001 From: hzrd149 Date: Mon, 12 Aug 2024 20:41:18 -0500 Subject: [PATCH] fixes --- .github/workflows/deploy-next.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy-next.yml b/.github/workflows/deploy-next.yml index 9915d3810..bf5281675 100644 --- a/.github/workflows/deploy-next.yml +++ b/.github/workflows/deploy-next.yml @@ -4,8 +4,12 @@ on: branches: - next +concurrency: + group: "pages" + cancel-in-progress: false + jobs: - run: + deploy: runs-on: ubuntu-latest env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} @@ -13,12 +17,21 @@ jobs: steps: - uses: actions/checkout@v3 + - name: Set up Node + uses: actions/setup-node@v3 + with: + node-version: 20 + cache: "npm" + - name: Install dependencies run: yarn - name: Build run: yarn build + - name: Redirect 404 to Index for SPA + run: cp dist/index.html dist/404.html + - name: Deploy uses: reggionick/s3-deploy@v4 with: