diff --git a/.github/workflows/gh-pages-deploy.yml b/.github/workflows/gh-pages-deploy.yml index db10a4c..2b6858a 100644 --- a/.github/workflows/gh-pages-deploy.yml +++ b/.github/workflows/gh-pages-deploy.yml @@ -1,32 +1,29 @@ name: Deploy to GitHub Pages on: - pull_request_target: - types: - - closed + push: branches: - master jobs: - if_merged: - if: github.event.pull_request.merged == true + deploy: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: Use Node.js - uses: actions/setup-node@v1 - with: - node-version: '18' - - - name: Install Dependencies - run: npm install + - name: Use Node.js + uses: actions/setup-node@v1 + with: + node-version: "18" - - name: Build - run: npm run build + - name: Install Dependencies + run: npm install - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs \ No newline at end of file + - name: Build + run: npm run build + + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./docs