1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00
nerd-fonts/.github/workflows/fontjson.yml
Fini Jastrow c78ca635df CI: Fixing the Fix
First checkout the base, then nested stuff...

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2024-02-29 22:38:09 +01:00

59 lines
1.4 KiB
YAML

name: Update gitignore and gh-pages
on:
push:
branches: [ master ]
paths:
- bin/scripts/lib/fonts.json
workflow_dispatch:
jobs:
sync_pages:
runs-on: ubuntu-latest
steps:
- name: Fetch gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
- name: Fetch files
uses: actions/checkout@v4
with:
sparse-checkout: bin/scripts/lib
path: master
- name: Prepare file
run: |
mkdir temp_data
cp master/bin/scripts/lib/fonts.json temp_data
ls -l temp_data
- name: Deploy to gh-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: temp_data
target-folder: _data
commit-message: "[ci] Sync fonts.json"
git-config-name: GitHub Actions
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
clean: false
update_gitignore:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Regenerate gitignore
run: |
cd bin/scripts
./update-gitignore.sh
- name: Commit gitignore back to repo
uses: EndBug/add-and-commit@v9
with:
fetch: false
add: ".gitignore"
message: "[ci] Update .gitignore file"
committer_name: GitHub Actions
committer_email: 41898282+github-actions[bot]@users.noreply.github.com