diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0d60aee..b0be42f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,23 +4,22 @@ on: push: branches: - main + - docs jobs: deploy: runs-on: ubuntu-latest steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v3 - - name: Build - uses: andstor/jsdoc-action@v1 - with: - output_dir: ./docs - config_file: js_docs.conf.json - template: minami - front_page: README.md + - name: Install dependencies + run : npm install + + - name: Generate docs + run : npm run docs - - name: Deploy + - name: Publish docs uses: peaceiris/actions-gh-pages@v3 with: deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}