From 4afc0be2e2f74ddeb561485379d33faeac39a668 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 5 Jun 2024 14:53:06 -0700 Subject: [PATCH] updated pages.yml --- .github/workflows/pages.yml | 11 ++++++++++- Gemfile => website/Gemfile | 0 _config.yml => website/_config.yml | 0 3 files changed, 10 insertions(+), 1 deletion(-) rename Gemfile => website/Gemfile (100%) rename _config.yml => website/_config.yml (100%) diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml index 2bfddae2a..7585af8b4 100644 --- a/.github/workflows/pages.yml +++ b/.github/workflows/pages.yml @@ -8,7 +8,10 @@ name: Deploy Jekyll site to Pages on: push: - branches: ["main"] + branches: + - "main" + paths: + - "website/**" # Allows you to run this workflow manually from the Actions tab workflow_dispatch: @@ -28,6 +31,9 @@ jobs: # Build job build: runs-on: ubuntu-latest + defaults: + run: + working-directory: website steps: - name: Checkout uses: actions/checkout@v3 @@ -37,6 +43,7 @@ jobs: ruby-version: '3.3' # 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 }}/website' - name: Setup Pages id: pages uses: actions/configure-pages@v3 @@ -48,6 +55,8 @@ jobs: - name: Upload artifact # Automatically uploads an artifact from the './_site' directory by default uses: actions/upload-pages-artifact@v1 + with: + path: "website/_site/" # Deployment job deploy: diff --git a/Gemfile b/website/Gemfile similarity index 100% rename from Gemfile rename to website/Gemfile diff --git a/_config.yml b/website/_config.yml similarity index 100% rename from _config.yml rename to website/_config.yml