From ddca8632f52743922928894b5564d3db14e7f67e Mon Sep 17 00:00:00 2001 From: Matteo Marsala Date: Mon, 4 Mar 2024 11:38:29 +0100 Subject: [PATCH 1/3] 2.0.5 Board Registration --- package-lock.json | 8 ++++---- package.json | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package-lock.json b/package-lock.json index dab154e058..f88dd40dda 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "hasInstallScript": true, "license": "ISC", "dependencies": { - "@arduino/docs-arduino-cc": "^2.0.5", + "@arduino/docs-arduino-cc": "^2.0.5-hotfix-1", "gatsby": "^5.11.0", "gatsby-background-image": "^1.6.0", "gatsby-image": "^3.11.0", @@ -308,9 +308,9 @@ } }, "node_modules/@arduino/docs-arduino-cc": { - "version": "2.0.5", - "resolved": "https://npm.pkg.github.com/download/@arduino/docs-arduino-cc/2.0.5/24c2aa650e3806e8725f09aa9f936cad874e76e9", - "integrity": "sha512-hobZ6irNM/a7XP5qs7k6OjiQGSgqW7dO9WeXRfEBTZaperlYAZOtod8k6kwqYpAUNaCALuZlaEFf4cTxjR3ftQ==", + "version": "2.0.5-hotfix-1", + "resolved": "https://npm.pkg.github.com/download/@arduino/docs-arduino-cc/2.0.5-hotfix-1/c3ccaf788a13d6d37a6706ed996e6104ecd22647", + "integrity": "sha512-2vfP7GROPhA1znZezoqvEQrzUahCiWRtRKp97ZJSxNQZkynfws4lFKriMIMvb8DpWzGvjdqbgQAp6JL0KoUK7g==", "dependencies": { "@algolia/autocomplete-core": "^1.10.0", "@algolia/autocomplete-preset-algolia": "^1.10.0", diff --git a/package.json b/package.json index e4972a61a2..25871f08a3 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.5", + "@arduino/docs-arduino-cc": "^2.0.5-hotfix-1", "gatsby": "^5.11.0", "gatsby-background-image": "^1.6.0", "gatsby-image": "^3.11.0", From d19b109db53a3763fbcb70215415d382f40788e2 Mon Sep 17 00:00:00 2001 From: Matteo Marsala Date: Tue, 5 Mar 2024 08:42:55 +0100 Subject: [PATCH 2/3] avoid cloudflare action --- .github/actions/cloudflare-upload/action.yml | 140 +++++++++---------- 1 file changed, 70 insertions(+), 70 deletions(-) diff --git a/.github/actions/cloudflare-upload/action.yml b/.github/actions/cloudflare-upload/action.yml index 03cdf67dcb..0f7ef58818 100644 --- a/.github/actions/cloudflare-upload/action.yml +++ b/.github/actions/cloudflare-upload/action.yml @@ -1,81 +1,81 @@ -name: "Upload an app to Cloudflare Pages" -description: "Manually deploy an app to cloudflare pages" -inputs: - upload-dir: - description: "The name of the app to build and export" - required: true - - project-name: - description: "The name of the project to upload to" - required: true +# name: "Upload an app to Cloudflare Pages" +# description: "Manually deploy an app to cloudflare pages" +# inputs: +# upload-dir: +# description: "The name of the app to build and export" +# required: true - cloudflare-account: - description: "The Cloudflare account ID" - required: true +# project-name: +# description: "The name of the project to upload to" +# required: true - cloudflare-api-token: - description: "The Cloudflare API token" - required: true +# cloudflare-account: +# description: "The Cloudflare account ID" +# required: true -runs: - using: composite - steps: +# cloudflare-api-token: +# description: "The Cloudflare API token" +# required: true - - name: Find PR Preview Comment - if: github.event_name == 'pull_request' - uses: peter-evans/find-comment@v1 - id: deploy-preview-comment - with: - issue-number: ${{ github.event.pull_request.number }} - comment-author: "github-actions[bot]" - body-includes: ${{ inputs.project-name }} +# runs: +# using: composite +# steps: - - 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 - with: - comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} - edit-mode: replace - body: | - ### ${{ inputs.project-name }} - Waiting for deployment to complete... +# - name: Find PR Preview Comment +# if: github.event_name == 'pull_request' +# uses: peter-evans/find-comment@v1 +# id: deploy-preview-comment +# with: +# issue-number: ${{ github.event.pull_request.number }} +# comment-author: "github-actions[bot]" +# body-includes: ${{ inputs.project-name }} - - id: branch-name - uses: tj-actions/branch-names@v5 +# - 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 +# with: +# comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} +# edit-mode: replace +# body: | +# ### ${{ inputs.project-name }} +# Waiting for deployment to complete... - - id: format-branch - shell: bash - run: format=$(echo ${{ steps.branch-name.outputs.current_branch }} | tr / -) && echo "::set-output name=branch::$(echo "${format:0:28}")" +# - id: branch-name +# uses: tj-actions/branch-names@v5 - - name: deploy-cloudflare - uses: cloudflare/pages-action@v1 - id: deploy-cloudflare - with: - apiToken: ${{ inputs.cloudflare-api-token }} - accountId: ${{ inputs.cloudflare-account }} - projectName: ${{ inputs.project-name }} - directory: ${{ inputs.upload-dir }} - branch: ${{ steps.format-branch.outputs.branch }} +# - id: format-branch +# shell: bash +# run: format=$(echo ${{ steps.branch-name.outputs.current_branch }} | tr / -) && echo "::set-output name=branch::$(echo "${format:0:28}")" - - name: Create 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 - with: - issue-number: ${{ github.event.pull_request.number }} - body: | - ### ${{ inputs.project-name }} - 🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.url }} - 📍 Commit SHA: ${{ github.sha }} - +# - name: deploy-cloudflare +# uses: cloudflare/pages-action@v1 +# id: deploy-cloudflare +# with: +# apiToken: ${{ inputs.cloudflare-api-token }} +# accountId: ${{ inputs.cloudflare-account }} +# projectName: ${{ inputs.project-name }} +# directory: ${{ inputs.upload-dir }} +# branch: ${{ steps.format-branch.outputs.branch }} - - 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 - with: - comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} - edit-mode: replace - body: | - ### ${{ inputs.project-name }} - 🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.url }} - 📍 Commit SHA: ${{ github.sha }} +# - name: Create 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 +# with: +# issue-number: ${{ github.event.pull_request.number }} +# body: | +# ### ${{ inputs.project-name }} +# 🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.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 +# with: +# comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} +# edit-mode: replace +# body: | +# ### ${{ inputs.project-name }} +# 🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.url }} +# 📍 Commit SHA: ${{ github.sha }} From 6506946378680dad0f4089a1cc950860f84c39ee Mon Sep 17 00:00:00 2001 From: Matteo Marsala Date: Tue, 5 Mar 2024 08:45:49 +0100 Subject: [PATCH 3/3] avoid cloudflare action --- .github/actions/cloudflare-upload/action.yml | 136 +++++++++---------- 1 file changed, 68 insertions(+), 68 deletions(-) diff --git a/.github/actions/cloudflare-upload/action.yml b/.github/actions/cloudflare-upload/action.yml index 0f7ef58818..ef274e577b 100644 --- a/.github/actions/cloudflare-upload/action.yml +++ b/.github/actions/cloudflare-upload/action.yml @@ -1,81 +1,81 @@ -# name: "Upload an app to Cloudflare Pages" -# description: "Manually deploy an app to cloudflare pages" -# inputs: -# upload-dir: -# description: "The name of the app to build and export" -# required: true +name: "Upload an app to Cloudflare Pages" +description: "Manually deploy an app to cloudflare pages" +inputs: + upload-dir: + description: "The name of the app to build and export" + required: true -# project-name: -# description: "The name of the project to upload to" -# required: true + project-name: + description: "The name of the project to upload to" + required: true -# cloudflare-account: -# description: "The Cloudflare account ID" -# required: true + cloudflare-account: + description: "The Cloudflare account ID" + required: true -# cloudflare-api-token: -# description: "The Cloudflare API token" -# required: true + cloudflare-api-token: + description: "The Cloudflare API token" + required: true -# runs: -# using: composite -# steps: +runs: + using: composite + steps: -# - name: Find PR Preview Comment -# if: github.event_name == 'pull_request' -# uses: peter-evans/find-comment@v1 -# id: deploy-preview-comment -# with: -# issue-number: ${{ github.event.pull_request.number }} -# comment-author: "github-actions[bot]" -# body-includes: ${{ inputs.project-name }} + - name: Find PR Preview Comment + if: github.event_name == 'pull_request' + uses: peter-evans/find-comment@v1 + id: deploy-preview-comment + with: + issue-number: ${{ github.event.pull_request.number }} + comment-author: "github-actions[bot]" + body-includes: ${{ inputs.project-name }} -# - 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 -# with: -# comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} -# edit-mode: replace -# body: | -# ### ${{ inputs.project-name }} -# Waiting for deployment to complete... + - 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 + with: + comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} + edit-mode: replace + body: | + ### ${{ inputs.project-name }} + Waiting for deployment to complete... -# - id: branch-name -# uses: tj-actions/branch-names@v5 + - id: branch-name + uses: tj-actions/branch-names@v5 -# - id: format-branch -# shell: bash -# run: format=$(echo ${{ steps.branch-name.outputs.current_branch }} | tr / -) && echo "::set-output name=branch::$(echo "${format:0:28}")" + - id: format-branch + shell: bash + run: format=$(echo ${{ steps.branch-name.outputs.current_branch }} | tr / -) && echo "::set-output name=branch::$(echo "${format:0:28}")" -# - name: deploy-cloudflare -# uses: cloudflare/pages-action@v1 -# id: deploy-cloudflare -# with: -# apiToken: ${{ inputs.cloudflare-api-token }} -# accountId: ${{ inputs.cloudflare-account }} -# projectName: ${{ inputs.project-name }} -# directory: ${{ inputs.upload-dir }} -# branch: ${{ steps.format-branch.outputs.branch }} + - name: deploy-cloudflare + uses: cloudflare/pages-action@v1 + id: deploy-cloudflare + with: + apiToken: ${{ inputs.cloudflare-api-token }} + accountId: ${{ inputs.cloudflare-account }} + projectName: ${{ inputs.project-name }} + directory: ${{ inputs.upload-dir }} + branch: ${{ steps.format-branch.outputs.branch }} -# - name: Create 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 -# with: -# issue-number: ${{ github.event.pull_request.number }} -# body: | -# ### ${{ inputs.project-name }} -# 🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.url }} -# 📍 Commit SHA: ${{ github.sha }} + - name: Create 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 + with: + issue-number: ${{ github.event.pull_request.number }} + body: | + ### ${{ inputs.project-name }} + 🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.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 -# with: -# comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} -# edit-mode: replace -# body: | -# ### ${{ inputs.project-name }} -# 🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.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 + with: + comment-id: ${{ steps.deploy-preview-comment.outputs.comment-id }} + edit-mode: replace + body: | + ### ${{ inputs.project-name }} + 🚀 Preview this PR: ${{ steps.deploy-cloudflare.outputs.url }} + 📍 Commit SHA: ${{ github.sha }}