Skip to content

Commit

Permalink
Add a devfile command to publish the blog site to surge
Browse files Browse the repository at this point in the history
Signed-off-by: Jane Doe <[email protected]>
  • Loading branch information
l0rd committed Jan 26, 2024
1 parent 7255766 commit 5c513c9
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .devfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,17 @@ commands:
group:
kind: build
isDefault: false
- id: publish-blog-to-surge
exec:
component: jekyll
commandLine: |
read -p "ENTER your GitHub login to customize the URL: " GH_LOGIN &&
read -p "ENTER a surge.sh token: " SURGE_TOKEN &&
export SURGE_TOKEN &&
export GH_LOGIN &&
npm install -g surge &&
surge ./_site --domain https://pr-${GH_LOGIN}-che-blog.surge.sh
events:
postStart:
- bundle-install
- bundle-install

0 comments on commit 5c513c9

Please sign in to comment.