diff --git a/.github/workflows/static.yml b/.github/workflows/static.yml index 39e4659..ee5054b 100644 --- a/.github/workflows/static.yml +++ b/.github/workflows/static.yml @@ -1,4 +1,3 @@ -# Simple workflow for deploying static content to GitHub Pages name: Deploy static content to Pages on: @@ -26,30 +25,38 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - name: Checkout code + uses: actions/checkout@v3 - name: Install JSDoc (if not globally installed) run: npm install -g jsdoc - name: Generate Documentation run: jsdoc -c jsdoc.config.json - + + - name: Upload Documentation Artifact + uses: actions/upload-artifact@v3 + with: + name: docs + path: ./docs + # Single deploy job since we're just deploying deploy: + needs: build_and_deploy environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} runs-on: ubuntu-latest steps: - - name: Checkout + - name: Checkout code uses: actions/checkout@v4 - name: Setup Pages uses: actions/configure-pages@v4 - - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + - name: Download Documentation Artifact + uses: actions/download-artifact@v3 with: - # Upload entire repository - path: './docs' + name: docs + path: ./docs - name: Deploy to GitHub Pages id: deployment uses: actions/deploy-pages@v4