Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 19 additions & 21 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,23 @@ jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: actions/checkout@v3
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
bundler-cache: true
- name: Install and Build 🔧
run: |
npm install -g mermaid.cli
export JEKYLL_ENV=production
bundle exec jekyll build
- name: Fix permission
run: |
chmod a+x bin/*
git commit -am "add execute permission to bin/deploy"
- name: Deploy 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site
- name: Checkout
uses: actions/checkout@v4

- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2.2'
bundler-cache: true

- name: Build
env:
JEKYLL_ENV: production
run: bundle exec jekyll build

- name: Deploy
if: github.event_name != 'pull_request'
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: _site
branch: gh-pages
17 changes: 12 additions & 5 deletions _includes/scripts/badges.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{%- if site.badges.altmetric_badge %}
<script async src="https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js"></script>
{%- endif %}
{%- if site.badges.dimensions_badge %}
<script async src="https://badge.dimensions.ai/badge.js"></script>
{%- assign load_publication_badges = page.selected_papers -%}
{%- if page.permalink == '/papers/' or page.url == '/papers/' -%}
{%- assign load_publication_badges = true -%}
{%- endif -%}

{%- if load_publication_badges -%}
{%- if site.badges.altmetric_badge %}
<script async src="https://d1bxh8uas1mnw7.cloudfront.net/assets/embed.js"></script>
{%- endif %}
{%- if site.badges.dimensions_badge %}
<script async src="https://badge.dimensions.ai/badge.js"></script>
{%- endif %}
{%- endif %}
2 changes: 1 addition & 1 deletion _layouts/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ <h2><a href="{{ '/blog/' | relative_url }}" style="color: inherit;">latest posts

<!-- Selected papers -->
{% if page.selected_papers -%}
<h2><a href="{{ '/publications/' | relative_url }}" style="color: inherit;">selected publications</a></h2>
<h2><a href="{{ '/papers/' | relative_url }}" style="color: inherit;">selected publications</a></h2>
{%- include selected_papers.html %}
{%- endif %}

Expand Down
Loading