social: add work url (#171)

* social: add work url

* Deploy: --dry-run -> --no-push
This commit is contained in:
Christoph Junghans 2021-01-05 07:37:57 -07:00 committed by GitHub
parent 625fb694d6
commit c4be6f8457
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 7 deletions

View File

@ -37,7 +37,7 @@ jobs:
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com" git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
if [[ ${GITHUB_REF} = refs/pull/*/merge ]]; then # pull request if [[ ${GITHUB_REF} = refs/pull/*/merge ]]; then # pull request
echo "::set-output name=SRC_BRANCH::${GITHUB_HEAD_REF}" echo "::set-output name=SRC_BRANCH::${GITHUB_HEAD_REF}"
echo "::set-output name=DRY_RUN::--dry-run" echo "::set-output name=NO_PUSH::--no-push"
elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc elif [[ ${GITHUB_REF} = refs/heads/* ]]; then # branch, e.g. master, source etc
echo "::set-output name=SRC_BRANCH::${GITHUB_REF#refs/heads/}" echo "::set-output name=SRC_BRANCH::${GITHUB_REF#refs/heads/}"
fi fi
@ -47,6 +47,6 @@ jobs:
echo "::set-output name=DEPLOY_BRANCH::gh-pages" echo "::set-output name=DEPLOY_BRANCH::gh-pages"
fi fi
- name: Deploy website - name: Deploy website
run: yes | bin/deploy --verbose ${{ steps.setup.outputs.DRY_RUN }} run: yes | bin/deploy --verbose ${{ steps.setup.outputs.NO_PUSH }}
--src ${{ steps.setup.outputs.SRC_BRANCH }} --src ${{ steps.setup.outputs.SRC_BRANCH }}
--deploy ${{ steps.setup.outputs.DEPLOY_BRANCH }} --deploy ${{ steps.setup.outputs.DEPLOY_BRANCH }}

View File

@ -51,6 +51,7 @@ quora_username: # your Quora username
publons_id: # your ID on Publons publons_id: # your ID on Publons
research_gate_profile: # your profile on ResearchGate research_gate_profile: # your profile on ResearchGate
blogger_url: # your blogger URL blogger_url: # your blogger URL
work_url: # work page URL
keybase_username: # your keybase user name keybase_username: # your keybase user name
contact_note: > contact_note: >

View File

@ -1,5 +1,5 @@
<span class="contact-icon text-center"> <span class="contact-icon text-center">
<a href="mailto:{{ site.email | encode_email }}"><i class="fas fa-envelope"></i></a> {% if site.email %}<a href="mailto:{{ site.email | encode_email }}"><i class="fas fa-envelope"></i></a>{% endif %}
{% if site.orcid_id %}<a href="https://orcid.org/{{ site.orcid_id }}" target="_blank" title="ORCID"><i class="ai ai-orcid"></i></a>{% endif %} {% if site.orcid_id %}<a href="https://orcid.org/{{ site.orcid_id }}" target="_blank" title="ORCID"><i class="ai ai-orcid"></i></a>{% endif %}
{% 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 %} {% 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 %}
{% 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 %} {% 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,6 +10,7 @@
{% if site.medium_username %}<a href="https://medium.com/@{{ site.medium_username }}" target="_blank" title="Medium"><i class="fab fa-medium"></i></a>{% endif %} {% if site.medium_username %}<a href="https://medium.com/@{{ site.medium_username }}" target="_blank" title="Medium"><i class="fab fa-medium"></i></a>{% endif %}
{% 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 %} {% 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 %}
{% if site.blogger_url %}<a href="{{ site.blogger_url }}" target="_blank" title="Blogger"><i class="fab fa-blogger-b"></i></a>{% endif %} {% if site.blogger_url %}<a href="{{ site.blogger_url }}" target="_blank" title="Blogger"><i class="fab fa-blogger-b"></i></a>{% endif %}
{% if site.work_url %}<a href="{{ site.work_url }}" target="_blank" title="Work"><i class="fas fa-briefcase"></i></a>{% endif %}
{% 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 %} {% 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 %}
{% if site.keybase_username %}<a href="https://keybase.io/{{ site.keybase_username }}" target="_blank" title="Keybase"><i class="fab fa-keybase"></i></a>{% endif %} {% if site.keybase_username %}<a href="https://keybase.io/{{ site.keybase_username }}" target="_blank" title="Keybase"><i class="fab fa-keybase"></i></a>{% endif %}
</span> </span>

View File

@ -7,7 +7,7 @@
SRC_BRANCH="master" SRC_BRANCH="master"
DEPLOY_BRANCH="gh-pages" DEPLOY_BRANCH="gh-pages"
USAGE_MSG="usage: deploy [-h|--help] [-u|--user] [-s|--src SRC_BRANCH] [-d|--deploy DEPLOY_BRANCH] [--verbose] [--dry-run]" USAGE_MSG="usage: deploy [-h|--help] [-u|--user] [-s|--src SRC_BRANCH] [-d|--deploy DEPLOY_BRANCH] [--verbose] [--no-push]"
while [[ $# > 0 ]]; do while [[ $# > 0 ]]; do
key="$1" key="$1"
@ -32,8 +32,8 @@ while [[ $# > 0 ]]; do
--verbose) --verbose)
set -x set -x
;; ;;
--dry-run) --no-push)
DRY_RUN="--dry-run" NO_PUSH="--no-push"
;; ;;
*) *)
echo "Option $1 is unknown." >&2 echo "Option $1 is unknown." >&2
@ -93,7 +93,7 @@ rm -R _site/
# Push to DEPLOY_BRANCH # Push to DEPLOY_BRANCH
git add -fA git add -fA
git commit --allow-empty -m "$(git log -1 --pretty=%B) [ci skip]" git commit --allow-empty -m "$(git log -1 --pretty=%B) [ci skip]"
git push ${DRY_RUN} -f -q origin $DEPLOY_BRANCH [[ ${NO_PUSH} ]] || git push -f -q origin $DEPLOY_BRANCH
# Move back to SRC_BRANCH # Move back to SRC_BRANCH
git checkout $SRC_BRANCH git checkout $SRC_BRANCH