modified: .github/workflows/jekyll-gh-pages.yml
This commit is contained in:
parent
f85c1cc25b
commit
bcb7db952e
1 changed files with 10 additions and 8 deletions
18
.github/workflows/jekyll-gh-pages.yml
vendored
18
.github/workflows/jekyll-gh-pages.yml
vendored
|
|
@ -1,10 +1,13 @@
|
||||||
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
|
# Deploy Docsify documentation to GitHub Pages
|
||||||
name: Deploy Jekyll with GitHub Pages dependencies preinstalled
|
name: Deploy Docsify Documentation
|
||||||
|
|
||||||
on:
|
on:
|
||||||
# Runs on pushes targeting the default branch
|
# Runs on pushes targeting the default branch
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
paths:
|
||||||
|
- 'docs/**'
|
||||||
|
- '.github/workflows/jekyll-gh-pages.yml'
|
||||||
|
|
||||||
# Allows you to run this workflow manually from the Actions tab
|
# Allows you to run this workflow manually from the Actions tab
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
@ -28,15 +31,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Pages
|
- name: Setup Pages
|
||||||
uses: actions/configure-pages@v5
|
uses: actions/configure-pages@v5
|
||||||
- name: Build with Jekyll
|
|
||||||
uses: actions/jekyll-build-pages@v1
|
- name: Upload docs folder
|
||||||
with:
|
|
||||||
source: ./
|
|
||||||
destination: ./_site
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
|
with:
|
||||||
|
path: 'docs'
|
||||||
|
|
||||||
# Deployment job
|
# Deployment job
|
||||||
deploy:
|
deploy:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue