Include sourceurl if possible
This commit is contained in:
parent
aec1ea1917
commit
027d2435a6
2 changed files with 7 additions and 1 deletions
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
|
|
@ -22,7 +22,10 @@ jobs:
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
- name: build
|
- name: build
|
||||||
run: |
|
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'
|
- if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||||
name: publish
|
name: publish
|
||||||
run: |
|
run: |
|
||||||
|
|
|
||||||
|
|
@ -43,6 +43,9 @@
|
||||||
<p>
|
<p>
|
||||||
|
|
||||||
This 3D printable project is offered under <a href="{{ relative }}LICENSE.html">an open source license</a>.
|
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>.
|
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>.
|
Create your own MySTL site with <a href="https://github.com/jepler/cookiecutter-mystl">cookiecutter-mystl</a>.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue