diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0d60aee..dfd975d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -4,24 +4,23 @@ 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 }} + github_token: ${{ secrets.PAGES_PUBLISH_ISO_8583 }} publish_dir: ./docs \ No newline at end of file