Skip to content

Commit

Permalink
fix: publish content to surge.sh (#1881)
Browse files Browse the repository at this point in the history
fix: publish content to surge.sh
  • Loading branch information
svor authored Feb 2, 2024
1 parent 160caa1 commit 1e321e9
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-content-push-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@ jobs:
do
(cd $directory && tree -H '.' -L 1 --noreport --charset utf-8 | sed '/<p class="VERSION">/,/<\/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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-pr-check-content.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ jobs:
do
(cd $directory && tree -H '.' -L 1 --noreport --charset utf-8 | sed '/<p class="VERSION">/,/<\/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
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 1e321e9

Please sign in to comment.