Skip to content

Commit

Permalink
chore: add static deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
multivoltage authored Jan 20, 2024
1 parent 4efcb4e commit 375ca60
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 375ca60

Please sign in to comment.