Skip to content

Commit 891d5d9

Browse files
committed
ci: Specify pagefind version in a file instead of directly in workflow file
Fixes #36
1 parent dff1e1b commit 891d5d9

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ jobs:
2626
- name: Read HUGO_VERSION
2727
id: hugo_version
2828
run: echo "HUGO_VERSION=$(cat HUGO_VERSION)" >> $GITHUB_OUTPUT
29+
- name: Read PAGEFIND_VERSION
30+
id: pagefind_version
31+
# put this one in the env so it's easier to call in the shell
32+
run: echo "PAGEFIND_VERSION=$(cat PAGEFIND_VERSION)" >> $GITHUB_ENV
2933

3034
- name: Setup Hugo
3135
uses: peaceiris/actions-hugo@v3
@@ -37,7 +41,8 @@ jobs:
3741
run: |
3842
mkdir -p ~/.local/bin/
3943
echo "$HOME/.local/bin" >> "$GITHUB_PATH"
40-
curl -L https://github.com/Pagefind/pagefind/releases/download/v1.3.0/pagefind-v1.3.0-x86_64-unknown-linux-musl.tar.gz | tar zxv -C ~/.local/bin pagefind
44+
curl -L "https://github.com/Pagefind/pagefind/releases/download/$PAGEFIND_VERSION/pagefind-$PAGEFIND_VERSION-x86_64-unknown-linux-musl.tar.gz" |
45+
tar zxv -C ~/.local/bin pagefind
4146
4247
- name: Build
4348
run: ./build.sh

PAGEFIND_VERSION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
v1.3.0

0 commit comments

Comments
 (0)