Skip to content

Commit ddc6413

Browse files
Modified workflow for github actions to have quarto aand TiniTex installations cached, to avoid reinstalling
1 parent 245a4d9 commit ddc6413

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,12 @@ jobs:
2020
key: quarto-v1
2121

2222
# Install Quarto only if not cached
23-
- name: Install Quarto
23+
- name: Install Quarto
2424
run: |
25-
if [ ! -f /opt/quarto/bin/quarto ]; then
25+
if ! command -v quarto &> /dev/null; then
2626
wget https://quarto.org/download/latest/quarto-linux-amd64.deb
2727
sudo dpkg -i quarto-linux-amd64.deb
28-
sudo mv /usr/local/bin/quarto /opt/quarto/bin/quarto
2928
fi
30-
echo "/opt/quarto/bin" >> $GITHUB_PATH
3129
3230
# Cache TinyTeX installation
3331
- name: Cache TinyTeX

0 commit comments

Comments
 (0)