diff --git a/.gitea/workflows/deploy-pages.yml b/.gitea/workflows/deploy-pages.yml index 50428b5..2311d17 100644 --- a/.gitea/workflows/deploy-pages.yml +++ b/.gitea/workflows/deploy-pages.yml @@ -18,7 +18,11 @@ jobs: - name: Build page run: | sed -i 's|repo_url[[:space:]]*=[[:space:]]*".*"|repo_url = "${{ github.server_url }}/${{ github.repository }}"|' zensical.toml - /opt/python-env/bin/zensical build + echo "Zensical version: `/opt/python-env/bin/zensical --version`" + # As long as we use ages old Zensical version 0.0.11, + # error status return does not work. Let's do our own. + #/opt/python-env/bin/zensical build + ! /opt/python-env/bin/zensical build 2>&1 | tee /dev/stderr | grep -q '^Error:' - name: Configure Git run: | @@ -35,3 +39,5 @@ jobs: REPO_URL=$(echo "${{ github.server_url }}/${{ github.repository }}.git" | sed 's|https://||') git push -f https://${{ secrets.GITHUB_TOKEN }}@$REPO_URL gitea-pages + echo > $GITHUB_STEP_SUMMARY "Your page is now at" \ + "https://"$(echo "${{ github.repository }}" | sed 's|/.*||')".pages.psi.ch"$(echo "${{ github.repository }}" | sed -e 's|^[^/]*/|/|' -e 's|/gitea-pages||')