Skip to content

Commit

Permalink
Merge pull request #1 from s4b7r/patch-1
Browse files Browse the repository at this point in the history
Build page from subdir
  • Loading branch information
schaarj authored Dec 7, 2023
2 parents c4d8698 + d5ee89c commit 15f8d33
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ name: Deploy Jekyll site to Pages
on:
push:
branches: ["main"]
paths: ["docs/**"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
Expand All @@ -28,6 +29,9 @@ jobs:
# Build job
build:
runs-on: ubuntu-latest
defaults:
run:
working-directory: docs
steps:
- name: Checkout
uses: actions/checkout@v3
Expand All @@ -37,6 +41,7 @@ jobs:
ruby-version: '3.1' # Not needed with a .ruby-version file
bundler-cache: true # runs 'bundle install' and caches installed gems automatically
cache-version: 0 # Increment this number if you need to re-download cached gems
working-directory: '${{ github.workspace }}/docs'
- name: Setup Pages
id: pages
uses: actions/configure-pages@v3
Expand All @@ -48,6 +53,8 @@ jobs:
- name: Upload artifact
# Automatically uploads an artifact from the './_site' directory by default
uses: actions/upload-pages-artifact@v1
with:
path: "docs/_site/"

# Deployment job
deploy:
Expand Down

0 comments on commit 15f8d33

Please sign in to comment.