diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index a37979e..b4febda 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -4,6 +4,26 @@ on: branches: - master jobs: + gh-pages: + name: Update Github Pages + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@master + - name: Set up Node.js + uses: actions/setup-node@master + with: + node-version: 18 + - name: Install dependencies + run: yarn + - name: Build + run: yarn build + - name: Deploy + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: . + publish_branch: gh-pages npm-publish: name: npm-publish runs-on: ubuntu-latest