retry torchlight step if it gets hung

This commit is contained in:
John Bowdre 2024-01-21 07:57:38 -06:00
parent e692775a60
commit 331cf3fa1f

View file

@ -27,6 +27,8 @@ jobs:
&& sudo dpkg -i ${{ runner.temp }}/hugo.deb
- name: Install Dart Sass
run: sudo snap install dart-sass
- name: Install Torchlight CLI
run: npm i @torchlight-api/torchlight-cli
- name: Checkout
uses: actions/checkout@v4
with:
@ -43,9 +45,12 @@ jobs:
--minify \
--baseURL "https://runtimeterror.dev/"
- name: Highlight with Torchlight
run: |
npm i @torchlight-api/torchlight-cli
npx torchlight
uses: nick-fields/retry@v2
with:
timeout_seconds: 120
max_attempts: 3
retry_wait_seconds: 15
command: npx torchlight
- name: Deploy to neocities
uses: bcomnes/deploy-to-neocities@v1
with: