diff --git a/.github/workflows/page.yml b/.github/workflows/page.yml new file mode 100644 index 0000000..ac2adfc --- /dev/null +++ b/.github/workflows/page.yml @@ -0,0 +1,29 @@ +name: github pages + +on: + push: + branches: + - main + +permissions: + contents: write + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8.6.2 + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: 'pnpm' + - run: pnpm install --frozen-lockfile + - run: pnpm build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./dist