From 134c518892db242612e01eed12260d6f1d13f067 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Sat, 10 Sep 2022 18:19:45 +0200 Subject: [PATCH] CI: Generate CSS and push to repo and gh-pages Signed-off-by: Fini Jastrow --- .github/workflows/release.yml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d6e7cafc1..1b178c714 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -328,6 +328,31 @@ jobs: committer_name: GitHub Actions committer_email: 41898282+github-actions[bot]@users.noreply.github.com + - name: Generate new CSS file + run: | + cd -- "$GITHUB_WORKSPACE/bin/scripts" + ./generate-css.sh + + - name: Commit CSS back to repo + uses: EndBug/add-and-commit@v9 + id: push_css + with: + add: 'css' + message: "[ci] Regenerate CSS files" + committer_name: GitHub Actions + committer_email: 41898282+github-actions[bot]@users.noreply.github.com + + - name: Deploy CSS to gh-pages + uses: JamesIves/github-pages-deploy-action@v4 + if: steps.push_css.outputs.pushed + with: + folder: css + target-folder: _includes/css + commit-message: "[ci] Regenerate CSS files" + git-config-name: GitHub Actions + git-config-email: 41898282+github-actions[bot]@users.noreply.github.com + clean: false + - name: Adjust release tag to include previous commit uses: EndBug/latest-tag@v1.5.0 if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'