File tree 4 files changed +9
-7
lines changed
4 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 37
37
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
38
38
if [[ ${GITHUB_REF} = refs/pull/*/merge ]]; then # pull request
39
39
echo "::set-output name=SRC_BRANCH::${GITHUB_HEAD_REF}"
40
- echo "::set-output name=DRY_RUN ::--dry-run "
40
+ echo "::set-output name=NO_PUSH ::--no-push "
41
41
elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc
42
42
echo "::set-output name=SRC_BRANCH::${GITHUB_REF#refs/heads/}"
43
43
fi
47
47
echo "::set-output name=DEPLOY_BRANCH::gh-pages"
48
48
fi
49
49
- name : Deploy website
50
- run : yes | bin/deploy --verbose ${{ steps.setup.outputs.DRY_RUN }}
50
+ run : yes | bin/deploy --verbose ${{ steps.setup.outputs.NO_PUSH }}
51
51
--src ${{ steps.setup.outputs.SRC_BRANCH }}
52
52
--deploy ${{ steps.setup.outputs.DEPLOY_BRANCH }}
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ quora_username: # your Quora username
51
51
publons_id : # your ID on Publons
52
52
research_gate_profile : # your profile on ResearchGate
53
53
blogger_url : # your blogger URL
54
+ work_url : # work page URL
54
55
keybase_username : # your keybase user name
55
56
56
57
contact_note : >
Original file line number Diff line number Diff line change 1
1
< span class ="contact-icon text-center ">
2
- < a href ="mailto:{{ site.email | encode_email }} "> < i class ="fas fa-envelope "> </ i > </ a >
2
+ {% if site.email %} < a href ="mailto:{{ site.email | encode_email }} "> < i class ="fas fa-envelope "> </ i > </ a > {% endif %}
3
3
{% if site.orcid_id %}< a href ="https://orcid.org/{{ site.orcid_id }} " target ="_blank " title ="ORCID "> < i class ="ai ai-orcid "> </ i > </ a > {% endif %}
4
4
{% if site.scholar_userid %}< a href ="https://scholar.google.com/citations?user={{ site.scholar_userid }} " target ="_blank " title ="Google Scholar "> < i class ="ai ai-google-scholar "> </ i > </ a > {% endif %}
5
5
{% if site.publons_id %}< a href ="https://publons.com/a/{{ site.publons_id }}/ " target ="_blank " title ="Publons "> < i class ="ai ai-publons "> </ i > </ a > {% endif %}
10
10
{% if site.medium_username %}< a href ="https://medium.com/@{{ site.medium_username }} " target ="_blank " title ="Medium "> < i class ="fab fa-medium "> </ i > </ a > {% endif %}
11
11
{% if site.quora_username %}< a href ="https://www.quora.com/profile/{{ site.quora_username }} " target ="_blank " title ="Quora "> < i class ="fab fa-quora "> </ i > </ a > {% endif %}
12
12
{% if site.blogger_url %}< a href ="{{ site.blogger_url }} " target ="_blank " title ="Blogger "> < i class ="fab fa-blogger-b "> </ i > </ a > {% endif %}
13
+ {% if site.work_url %}< a href ="{{ site.work_url }} " target ="_blank " title ="Work "> < i class ="fas fa-briefcase "> </ i > </ a > {% endif %}
13
14
{% if site.strava_userid %}< a href ="https://www.strava.com/athletes/{{ site.strava_userid }} " target ="_blank " title ="Strava "> < i class ="fab fa-strava "> </ i > </ a > {% endif %}
14
15
{% if site.keybase_username %}< a href ="https://keybase.io/{{ site.keybase_username }} " target ="_blank " title ="Keybase "> < i class ="fab fa-keybase "> </ i > </ a > {% endif %}
15
16
</ span >
Original file line number Diff line number Diff line change 7
7
SRC_BRANCH=" master"
8
8
DEPLOY_BRANCH=" gh-pages"
9
9
10
- USAGE_MSG=" usage: deploy [-h|--help] [-u|--user] [-s|--src SRC_BRANCH] [-d|--deploy DEPLOY_BRANCH] [--verbose] [--dry-run ]"
10
+ USAGE_MSG=" usage: deploy [-h|--help] [-u|--user] [-s|--src SRC_BRANCH] [-d|--deploy DEPLOY_BRANCH] [--verbose] [--no-push ]"
11
11
12
12
while [[ $# > 0 ]]; do
13
13
key=" $1 "
@@ -32,8 +32,8 @@ while [[ $# > 0 ]]; do
32
32
--verbose)
33
33
set -x
34
34
;;
35
- --dry-run )
36
- DRY_RUN =" --dry-run "
35
+ --no-push )
36
+ NO_PUSH =" --no-push "
37
37
;;
38
38
* )
39
39
echo " Option $1 is unknown." >&2
@@ -93,7 +93,7 @@ rm -R _site/
93
93
# Push to DEPLOY_BRANCH
94
94
git add -fA
95
95
git commit --allow-empty -m " $( git log -1 --pretty=%B) [ci skip]"
96
- git push ${DRY_RUN} -f -q origin $DEPLOY_BRANCH
96
+ [[ ${NO_PUSH} ]] || git push -f -q origin $DEPLOY_BRANCH
97
97
98
98
# Move back to SRC_BRANCH
99
99
git checkout $SRC_BRANCH
You can’t perform that action at this time.
0 commit comments