Skip to content
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
16 changes: 10 additions & 6 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,16 @@ jobs:
- name: Get Zotero Version Information
id: zoteroVersion
run: |
VERSION=$(curl -sI "https://api.zotero.org/groups/2914042/items?format=versions" \
set -euo pipefail
VERSION=$(curl -fsSLI "https://api.zotero.org/groups/2914042/items?format=versions" \
| grep -i "last-modified-version" \
| cut -d: -f2 \
| tr -d '\r ' )
echo "version=$VERSION" >> $GITHUB_OUTPUT
| tr -d $'\r ' )
if [[ -z "${VERSION:-}" ]]; then
echo "Error: Failed to determine Zotero Last-Modified-Version from API response." >&2
exit 1
fi
echo "version=$VERSION" >> "$GITHUB_OUTPUT"

- name: Cache Zotero Bibliography
id: cache-zotero
Expand Down Expand Up @@ -172,8 +177,7 @@ jobs:

- name: Install dependencies
run: |
npm install -g autoprefixer postcss-cli
npm install
npm ci

- name: Build
env:
Expand All @@ -197,5 +201,5 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
uses: actions/deploy-pages@v5

Loading