mirror of
https://github.com/ryanoasis/nerd-fonts.git
synced 2024-09-19 09:51:48 +02:00
CI: Generate CSS and push to repo and gh-pages
Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
parent
41e0b16a4d
commit
134c518892
1 changed files with 25 additions and 0 deletions
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
|
@ -328,6 +328,31 @@ jobs:
|
||||||
committer_name: GitHub Actions
|
committer_name: GitHub Actions
|
||||||
committer_email: 41898282+github-actions[bot]@users.noreply.github.com
|
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
|
- name: Adjust release tag to include previous commit
|
||||||
uses: EndBug/latest-tag@v1.5.0
|
uses: EndBug/latest-tag@v1.5.0
|
||||||
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
if: needs.setup-fonts-matrix.outputs.rel_upload == 'true'
|
||||||
|
|
Loading…
Reference in a new issue