Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run pages build on PRs that touch docs. #378

Merged
merged 4 commits into from
Jun 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 9 additions & 10 deletions .github/workflows/pages.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.

# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy Jekyll site to Pages

on:
# Run on merges to main branch
push:
branches:
- main

# Allows you to run this workflow manually from the Actions tab
# Run on any PRs that touch the docs directory
pull_request:
paths:
- docs/**

# Run manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand Down Expand Up @@ -48,9 +48,7 @@ jobs:
- name: Build with Jekyll
working-directory: docs
# Outputs to the './_site' directory by default
run:
bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path
}}"
run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path }}"
env:
JEKYLL_ENV: production
- name: Upload artifact
Expand All @@ -61,6 +59,7 @@ jobs:

# Deployment job
website-deploy:
if: github.ref == 'refs/heads/main' # only deploy from main
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand Down