diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 000000000..165cf4ca8 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,37 @@ +name: Deploy To Github pages +on: + push: + branches: + - main + +env: + NODE_VERSION: lts/* + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v3 + with: + persist-credentials: false + - name: Install pnpm + uses: pnpm/action-setup@v2 + with: + version: 8.x + - name: Set node version to LTS + uses: actions/setup-node@v3 + with: + node-version: ${{ env.NODE_VERSION }} + registry-url: https://registry.npmjs.org/ + cache: pnpm + - name: Install and Build + run: | + pnpm run install-fonts + pnpm run docs:build + - name: Deploy + uses: JamesIves/github-pages-deploy-action@v4.2.2 + with: + branch: gh-pages + folder: ./packages/.vitepress/dist + diff --git a/packages/metadata/package.json b/packages/metadata/package.json index fd31142c5..778472394 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -34,6 +34,6 @@ "index.*" ], "scripts": { - "update": "esno scripts/update.ts && cat ./index.json" + "update": "esno scripts/update.ts" } }