show github repository in built site

This commit is contained in:
Jeff Epler 2020-08-09 21:47:40 -05:00
parent aadaf820f5
commit f8463fdd98
2 changed files with 5 additions and 1 deletions

View file

@ -22,7 +22,8 @@ jobs:
uses: actions/checkout@v2
- name: build
run: |
xvfb-run make V=2 -O -j$(nproc) jekyll
echo "sourceurl: https://github.com/${GITHUB_REPOSITORY}" >> _config.yml
env JEKYLL_ENV=production xvfb-run make V=2 -O -j$(nproc) jekyll
- if: github.event_name == 'push' && github.ref == 'refs/heads/{{ cookiecutter.main_branch_name }}'
name: publish
run: |

View file

@ -43,6 +43,9 @@
<p>
{% raw %}
This 3D printable project is offered under <a href="{{ relative }}LICENSE.html">an open source license</a>.
{% if site.sourceurl and site.sourceurl != "" %}
The source is managed at <a href="{{ site.sourceurl }}">{{ site.sourceurl }}</a>.
{% endif %}
The site is built with software under <a href="{{ relative }}other-licenses.html">various open source licenses</a>.
{% endraw %}
Create your own MySTL site with <a href="https://github.com/jepler/cookiecutter-mystl">cookiecutter-mystl</a>.