From 0b60f5de8f97683107841c457a7c1dc5d367f862 Mon Sep 17 00:00:00 2001 From: Matteo Marsala Date: Thu, 13 Jun 2024 10:43:31 +0200 Subject: [PATCH] 2.0.12 (#2015) * 2.0.12-alpha-1 * Update github actions * 2.0.12-alpha-2 * rebase with new actions * 2.0.12 --- .github/workflows/deploy-prd.yml | 2 +- .github/workflows/deploy-production.yml | 2 +- .github/workflows/deploy-staging.yml | 2 +- .github/workflows/deploy-stg.yml | 2 +- .github/workflows/preview.yml | 9 +++++---- package-lock.json | 8 ++++---- package.json | 2 +- 7 files changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/deploy-prd.yml b/.github/workflows/deploy-prd.yml index 84afdf7cee..ae84ddc9eb 100644 --- a/.github/workflows/deploy-prd.yml +++ b/.github/workflows/deploy-prd.yml @@ -33,7 +33,7 @@ jobs: - name: Copy Static Files run: | - mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts + mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts static/resources/models find ./content/hardware -type f -name "*-schematics.pdf" -exec cp {} ./static/resources/schematics/ \; find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \; find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \; diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index 3f137a7cbc..b3966adeb1 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -38,7 +38,7 @@ jobs: - name: Copy Static Files run: | - mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts + mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts static/resources/models find ./content/hardware -type f -name "*-schematics.pdf" -exec cp {} ./static/resources/schematics/ \; find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \; find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \; diff --git a/.github/workflows/deploy-staging.yml b/.github/workflows/deploy-staging.yml index 429bcd67fc..ee6645a559 100644 --- a/.github/workflows/deploy-staging.yml +++ b/.github/workflows/deploy-staging.yml @@ -38,7 +38,7 @@ jobs: - name: Copy Static Files run: | - mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts + mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts static/resources/models find ./content/hardware -type f -name "*-schematics.pdf" -exec cp {} ./static/resources/schematics/ \; find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \; find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \; diff --git a/.github/workflows/deploy-stg.yml b/.github/workflows/deploy-stg.yml index 8721679cdd..6922835875 100644 --- a/.github/workflows/deploy-stg.yml +++ b/.github/workflows/deploy-stg.yml @@ -33,7 +33,7 @@ jobs: - name: Copy Static Files run: | - mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts + mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts static/resources/models find ./content/hardware -type f -name "*-schematics.pdf" -exec cp {} ./static/resources/schematics/ \; find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \; find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \; diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index d6174ab855..f76768f925 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -33,7 +33,7 @@ jobs: issue-number: ${{ github.event.pull_request.number }} comment-author: "github-actions[bot]" body-includes: "Preview Deployment" - + - name: Update Comment if exists if: github.event_name == 'pull_request' && steps.deploy-preview-comment.outputs.comment-id != 0 uses: peter-evans/create-or-update-comment@v1.4.5 @@ -57,11 +57,12 @@ jobs: - name: Copy Static Files run: | - mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts + mkdir -p static/resources/datasheets static/resources/schematics static/resources/pinouts static/resources/models find ./content/hardware -type f -name "*-schematics.pdf" -exec cp {} ./static/resources/schematics/ \; find ./content/hardware -type f -name "*-datasheet.pdf" -exec cp {} ./static/resources/datasheets/ \; find ./content/hardware -type f -name "*-full-pinout.pdf" -exec cp {} ./static/resources/pinouts/ \; find ./content/hardware -type f -name "*-pinout.png" -exec cp {} ./static/resources/pinouts/ \; + find ./content/hardware -type f -name "*-step.zip" -exec cp {} ./static/resources/models/ \; - name: Gatsby main cache uses: actions/cache@v4 @@ -107,7 +108,7 @@ jobs: --auth ${{ secrets.NETLIFY_AUTH_TOKEN }} \ --json \ > deploy_output.json - + - name: Generate URL Preview if: github.event_name == 'pull_request' id: url_preview @@ -124,7 +125,7 @@ jobs: ## Preview Deployment 🚀 Preview this PR: ${{ steps.url_preview.outputs.NETLIFY_PREVIEW_URL }} 📍 Commit SHA: ${{ github.sha }} - + - name: Update PR Preview Comment if: github.event_name == 'pull_request' && steps.deploy-preview-comment.outputs.comment-id != 0 uses: peter-evans/create-or-update-comment@v1.4.5 diff --git a/package-lock.json b/package-lock.json index 5834d0eb9a..5cc363fa34 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "hasInstallScript": true, "license": "ISC", "dependencies": { - "@arduino/docs-arduino-cc": "^2.0.11", + "@arduino/docs-arduino-cc": "^2.0.12", "gatsby": "^5.11.0", "gatsby-background-image": "^1.6.0", "gatsby-image": "^3.11.0", @@ -339,9 +339,9 @@ } }, "node_modules/@arduino/docs-arduino-cc": { - "version": "2.0.11", - "resolved": "https://npm.pkg.github.com/download/@arduino/docs-arduino-cc/2.0.11/7940df9519561496b3fef0a018fb751620059acf", - "integrity": "sha512-ZuDtYrjG8PahIK9z6gz58ciy34DGWn6oB80nCeOsfP2BnfDKGgd1U1qBq8CDWkPGFj1jdOEeAqLMHx0NQEV8Jw==", + "version": "2.0.12", + "resolved": "https://npm.pkg.github.com/download/@arduino/docs-arduino-cc/2.0.12/2c977fce95a3e5096abae1f8d0b14843cafe25e0", + "integrity": "sha512-y3pWQEolf2f8juRi3L8Wi54W2yTpRZQe2XxvLcyD6oN7I62FX0pGGtiYclM6hgFx6AA77AsUiMCSVzpFm86Xpw==", "dependencies": { "@algolia/autocomplete-core": "^1.10.0", "@algolia/autocomplete-plugin-recent-searches": "^1.17.0", diff --git a/package.json b/package.json index 9dc4cd5147..9bd262acd5 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "homepage": "https://github.com/arduino/docs-content#readme", "dependencies": { - "@arduino/docs-arduino-cc": "^2.0.11", + "@arduino/docs-arduino-cc": "^2.0.12", "gatsby": "^5.11.0", "gatsby-background-image": "^1.6.0", "gatsby-image": "^3.11.0",