diff --git a/.github/workflows/test+deploy.yml b/.github/workflows/test+deploy.yml index 978b37e..439f053 100644 --- a/.github/workflows/test+deploy.yml +++ b/.github/workflows/test+deploy.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ node-version: 20.15.1 @@ -45,11 +45,9 @@ jobs: run: npm run build - name: Upload build artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-pages-artifact@v3 with: - name: build path: build - if-no-files-found: error # ********************** # Unit + component tests @@ -62,7 +60,7 @@ jobs: - uses: actions/checkout@v4 - name: Set up Node - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: # See supported Node.js release schedule at https://nodejs.org/en/about/releases/ node-version: 20.15.1 @@ -102,9 +100,9 @@ jobs: # ********************** deploy: + runs-on: ubuntu-latest needs: [build, e2e_tests, unit_and_component_tests] if: github.ref == 'refs/heads/main' - runs-on: ubuntu-latest permissions: pages: write @@ -115,11 +113,6 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - - uses: actions/download-artifact@v2 - with: - name: build - path: build - - name: Deploy id: deployment uses: actions/deploy-pages@v4