diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml new file mode 100644 index 000000000..bc8053ba8 --- /dev/null +++ b/.github/workflows/gh-pages.yml @@ -0,0 +1,26 @@ +on: + push: + branches: + - main + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + + - name: Setup Node + uses: actions/setup-node@v1 + with: + node-version: 18 + + - run: npm install + - run: npm ci + + - run: npm run build + + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + publish_dir: ./_site + github_token: ${{ secrets.GITHUB_TOKEN }}