diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 4ff7ecc..bbac26b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -30,25 +30,31 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Set up Node uses: actions/setup-node@v3 with: node-version: 'lts/*' cache: 'npm' + - name: Install dependencies run: npm ci --omit=dev + - name: Build run: npm run build:prod + - name: Copy index.html to 404.html # see https://stackoverflow.com/a/76148302 run: cp ./dist/index.html ./dist/404.html + - name: Setup Pages - uses: actions/configure-pages@v3 + uses: actions/configure-pages@v5 + - name: Upload artifact - uses: actions/upload-pages-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: - # Upload dist repository path: './dist' + - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 + uses: actions/deploy-pages@v4