-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: jlanson <[email protected]>
- Loading branch information
Showing
2 changed files
with
39 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -46,14 +46,24 @@ jobs: | |
- name: Checkout Hipcheck Repository | ||
uses: actions/checkout@v4 | ||
|
||
# Check if any site changes and skip future steps if not | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
filters: | | ||
site: | ||
- "site/**" | ||
# Install the latest version of Zola. | ||
- name: Install Zola | ||
if: steps.filter.outputs.site == 'true' | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: [email protected] | ||
|
||
# Install the latest version of the Tailwind CLI. | ||
- name: Install Tailwind CLI | ||
if: steps.filter.outputs.site == 'true' | ||
run: | | ||
curl --proto '=https' --tlsv1.2 -sSLO https://github.com/tailwindlabs/tailwindcss/releases/download/v${TAILWIND_VERSION}/tailwindcss-linux-x64 | ||
chmod +x tailwindcss-linux-x64 | ||
|
@@ -64,12 +74,14 @@ jobs: | |
# Install the latest major version of Deno. | ||
- name: Install Deno | ||
if: steps.filter.outputs.site == 'true' | ||
uses: denoland/setup-deno@v2 | ||
with: | ||
deno-version: v2.x | ||
|
||
# Build the actual site with Zola and Tailwind. | ||
- name: Build Hipcheck Website | ||
if: steps.filter.outputs.site == 'true' | ||
run: | | ||
cd site | ||
zola build | ||
|