From 1e321e915587bf1482c418520c15fa8386eb0ffe Mon Sep 17 00:00:00 2001 From: Valerii Svydenko Date: Fri, 2 Feb 2024 20:14:10 +0200 Subject: [PATCH] fix: publish content to surge.sh (#1881) fix: publish content to surge.sh --- .github/workflows/publish-content-push-main.yml | 8 ++++---- .github/workflows/publish-pr-check-content.yml | 6 +++--- CONTRIBUTE.md | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/publish-content-push-main.yml b/.github/workflows/publish-content-push-main.yml index fb56dad66a..09b94a3629 100644 --- a/.github/workflows/publish-content-push-main.yml +++ b/.github/workflows/publish-content-push-main.yml @@ -45,13 +45,13 @@ jobs: do (cd $directory && tree -H '.' -L 1 --noreport --charset utf-8 | sed '/

/,/<\/p>/d' > index.html) done - # Make meta.yaml as index - for file in $(find content -name 'meta.yaml' -type f) + # Make devfile.yaml as index + for file in $(find content -name 'devfile.yaml' -type f) do PARENT_DIR=$(dirname $file); - cp ${PARENT_DIR}/meta.yaml ${PARENT_DIR}/index.html + cp ${PARENT_DIR}/devfile.yaml ${PARENT_DIR}/index.html done - export DEPLOY_DOMAIN=https://che-plugin-registry-main.surge.sh + export DEPLOY_DOMAIN=https://che-plugin-registry.surge.sh echo "DEPLOY_DOMAIN=$DEPLOY_DOMAIN" >> $GITHUB_ENV surge ./content --domain $DEPLOY_DOMAIN - name: Publish to gh-pages diff --git a/.github/workflows/publish-pr-check-content.yml b/.github/workflows/publish-pr-check-content.yml index d69e96cefc..aae12d0eab 100644 --- a/.github/workflows/publish-pr-check-content.yml +++ b/.github/workflows/publish-pr-check-content.yml @@ -66,11 +66,11 @@ jobs: do (cd $directory && tree -H '.' -L 1 --noreport --charset utf-8 | sed '/

/,/<\/p>/d' > index.html) done - # Make meta.yaml as index - for file in $(find unpacked -name 'meta.yaml' -type f) + # Make devfile.yaml as index + for file in $(find unpacked -name 'devfile.yaml' -type f) do PARENT_DIR=$(dirname $file); - cp ${PARENT_DIR}/meta.yaml ${PARENT_DIR}/index.html + cp ${PARENT_DIR}/devfile.yaml ${PARENT_DIR}/index.html done export DEPLOY_DOMAIN=https://pr-check-${PR_NUMBER}-che-plugin-registry.surge.sh echo "DEPLOY_DOMAIN=$DEPLOY_DOMAIN" >> $GITHUB_ENV diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md index 3c51dc751c..a944908a5d 100644 --- a/CONTRIBUTE.md +++ b/CONTRIBUTE.md @@ -143,7 +143,7 @@ The job names are `surge`. Clicking on `Details` in the GitHub PR view will take For example, build of PR 805 would be hosted at: https://pr-check-805-che-plugin-registry.surge.sh/ ### Next -A next build of the plugin registry is published on both [surge.sh](https://che-plugin-registry-main.surge.sh/), and [GitHub Pages](https://eclipse-che.github.io/che-plugin-registry/main/). Both are updated upon every commit merged to the main branch. +A next build of the plugin registry is published on both [surge.sh](https://che-plugin-registry.surge.sh/), and [GitHub Pages](https://eclipse-che.github.io/che-plugin-registry/main/). Both are updated upon every commit merged to the main branch. ### Versioned Releases Versioned releases of the che-plugin-registry are also published to GitHub Pages. The version of the release is name of the last folder in the URL.