Include sourceurl if possible

This commit is contained in:
Jeff Epler 2020-08-09 21:21:31 -05:00
parent aec1ea1917
commit 027d2435a6
2 changed files with 7 additions and 1 deletions

View file

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

View file

@ -43,6 +43,9 @@
<p>
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>.
Create your own MySTL site with <a href="https://github.com/jepler/cookiecutter-mystl">cookiecutter-mystl</a>.