-
-
Notifications
You must be signed in to change notification settings - Fork 119
Testing - Surge deploy #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 14 commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b239f53
variables used in deploy script
Shekharrajak 3c6ba53
minor change
Shekharrajak 0aaab18
minor change - checking the current directory it is looking for proje…
Shekharrajak ba22dbd
minor change - checking the current directory it is looking for proje…
Shekharrajak 5a1091e
minor change - checking the current directory it is looking for proje…
Shekharrajak 9f3a4b5
running the deploy script
Shekharrajak 0025546
minor change
Shekharrajak 5f4a00e
verify the surge login and surge token
Shekharrajak d5a3045
minor change
Shekharrajak 08a7035
minor change- put build script in entry point only
Shekharrajak 16cbcff
minor change- call build from deploy script
Shekharrajak 7c9566f
adds submodule command to build.sh
joelachance 6ee14c1
adds submodules to deploy.sh
joelachance 431c52b
adds git to Dockerfile
joelachance 2bd3acc
comment added in build.sh - unused file for now
Shekharrajak cef023e
comment added in build.sh - unused file for now
Shekharrajak 81fd6a3
minor changes in deploy.sh - unused code removed and comment added
Shekharrajak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/sh | ||
|
||
hugo | ||
git submodule update --init | ||
sudo hugo | ||
ls | ||
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,24 @@ | ||
#!/bin/sh | ||
|
||
# Should be moved to build.sh | ||
# NOTE: Running build.sh and then deploy.sh is not finding the public | ||
# folder which is generated after the build command (hugo). | ||
git submodule update --init | ||
hugo | ||
|
||
npm install -g surge | ||
|
||
echo "REF value is ${REF}" | ||
|
||
PR_NUMBER="$(echo $REF | cut -d'/' -f3)" | ||
PROJECT_BUILD="./public" | ||
DOMAIN="pr-${PR_NUMBER}-numpy.org-newsite.surge.sh" | ||
echo "PR_NUMBER: $PR_NUMBER" | ||
echo "SURGE_LOGIN: $SURGE_LOGIN" | ||
echo "SURGE_TOKEN: $SURGE_TOKEN" | ||
ls | ||
echo "---" | ||
ls "./public" | ||
|
||
surge --project $PROJECT_BUILD --domain $DOMAIN; | ||
|
||
surge --project "./public" --domain "pr-${PR_NUMBER}-numpy.org-newsite.surge.sh"; | ||
|
||
echo ::set-output name=deployed-domain::"pr-${PR_NUMBER}-numpy.org-newsite.surge.sh" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we delete this file since its not being used, or do we still plan to move the build steps here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I will make a note. Actually previously in this PR: #46 , I used to call the
build.sh
anddeploy.sh
separately. But now we were facing issue so I make it in one script file.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it! I did see your comment in deploy.sh after I made this comment. Maybe we just delete or add a
#deprecated / not being used
comment in build.sh?