diff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.yml index e31d81c5..82002f8f 100644 --- a/.github/workflows/jekyll-gh-pages.yml +++ b/.github/workflows/jekyll-gh-pages.yml @@ -1,10 +1,13 @@ -# Sample workflow for building and deploying a Jekyll site to GitHub Pages -name: Deploy Jekyll with GitHub Pages dependencies preinstalled +# Deploy Docsify documentation to GitHub Pages +name: Deploy Docsify Documentation on: # Runs on pushes targeting the default branch push: branches: ["main"] + paths: + - 'docs/**' + - '.github/workflows/jekyll-gh-pages.yml' # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -28,15 +31,14 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - name: Setup Pages uses: actions/configure-pages@v5 - - name: Build with Jekyll - uses: actions/jekyll-build-pages@v1 - with: - source: ./ - destination: ./_site - - name: Upload artifact + + - name: Upload docs folder uses: actions/upload-pages-artifact@v3 + with: + path: 'docs' # Deployment job deploy: