diff --git a/.github/workflows/build-and-deploy.yml b/.github/workflows/build-and-deploy.yml index 379b2cb..3dc0ad4 100644 --- a/.github/workflows/build-and-deploy.yml +++ b/.github/workflows/build-and-deploy.yml @@ -11,12 +11,29 @@ jobs: steps: - name: Checkout Repo uses: actions/checkout@master + - name: Setup Node + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: npm - name: Install Dependencies run: npm ci - name: Build run: npm run build - - name: Push to gh-pages - uses: JamesIves/github-pages-deploy-action@4.1.1 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 with: - branch: gh-pages # The branch the action should deploy to. - folder: build # The folder the action should deploy. + path: ./dist + deploy: + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + needs: build + steps: + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4