diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7719a14..7d43893 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -1,3 +1,4 @@ +--- # Based on https://github.com/actions/starter-workflows/blob/main/pages/jekyll.yml name: Build @@ -31,15 +32,20 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - 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 cache gems + 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 cache gems - name: Setup Pages id: pages uses: actions/configure-pages@v3 - - run: JEKYLL_ENV=production bundle exec jekyll build --baseurl ${{steps.pages.outputs.base_path}} # defaults output to '/_site' + - name: Build with Jekyll + # Outputs to the '/_site' directory + run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}" + env: + JEKYLL_ENV=production - name: Upload Artifact - uses: actions/upload-pages-artifact@v1 # This will automatically upload an artifact from the '/_site' directory + # Automatically uploads an artifact from the '/_site' directory + uses: actions/upload-pages-artifact@v1 # Deployment job deploy: environment: