8000 Split CI build, restore Cloudflare purge for datasheets by Serjlee · Pull Request #2153 · arduino/docs-content · GitHub
[go: up one dir, main page]

Skip to content

Split CI build, restore Cloudflare purge for datasheets #2153

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 18 commits into from
Sep 10, 2024
Merged
Prev Previous commit
Next Next commit
Skip everything on cache hit
  • Loading branch information
Serjlee committed Sep 9, 2024
commit 30f285be907d69b9e709fbecd5264b42e3937c91
14 changes: 8 additions & 6 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,22 +22,24 @@ jobs:
name: Render Datasheets
runs-on: ubuntu-latest
steps:
- uses: actions/cache@v4
id: cache
with:
path: static/resources/datasheets
key: ${{ runner.os }}-datasheets-${{ hashFiles('**/*datasheet.md') }}

- uses: actions/checkout@v4
if: steps.cache.outputs.cache-hit != 'true'
with:
fetch-depth: 1

- uses: actions/setup-node@v4
if: steps.cache.outputs.cache-hit != 'true'
with:
node-version: 18
cache: "npm"
cache-dependency-path: "package-lock.json"

- uses: actions/cache@v4
id: cache
with:
path: static/resources/datasheets
key: ${{ runner.os }}-datasheets-${{ hashFiles('**/*datasheet.md') }}

- name: Render Datasheets
if: steps.cache.outputs.cache-hit != 'true'
run: |
Expand Down
0