diff --git a/.github/workflows/nextjs.yml b/.github/workflows/nextjs.yml new file mode 100644 index 0000000..9e606f5 --- /dev/null +++ b/.github/workflows/nextjs.yml @@ -0,0 +1,33 @@ +name: Deploy to Github Pages + +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-20.04 + strategy: + matrix: + node-version: [18.16] + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Use Node ${{ matrix.node-version }} + uses: actions/setup-node@v3 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm ci + + - name: Build playground + run: npm run build:docs + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./apps/docs/out