1
0
mirror of https://github.com/ryanoasis/nerd-fonts.git synced 2024-12-19 20:12:52 +02:00

CI: Fixing the Fix

First checkout the base, then nested stuff...

Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
This commit is contained in:
Fini Jastrow 2024-02-29 17:34:22 +01:00
parent b64ee780f6
commit c78ca635df
4 changed files with 20 additions and 30 deletions

View File

@ -14,11 +14,10 @@ jobs:
name: Create casks
runs-on: ubuntu-latest
steps:
- name: Fetch stuff (no checkout)
- name: Fetch stuff
uses: actions/checkout@v4
with:
sparse-checkout: |
bin/scripts
sparse-checkout: bin/scripts
- name: Fetch release artifacts
run: |
cd bin/scripts

View File

@ -14,22 +14,19 @@ jobs:
name: Update gh-pages contributors
runs-on: ubuntu-latest
steps:
- name: Fetch pages from gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
- name: Get details and script from default branch
uses: actions/checkout@v4
with:
sparse-checkout: |
.
bin/scripts
sparse-checkout: bin/scripts
path: master
- name: Fetch old from gh-pages
uses: actions/checkout@v4
with:
sparse-checkout: _posts
ref: gh-pages
- name: Combine branches
run: |
mkdir -p bin
cp master/CONTRIBUTORS.md .
mkdir -p bin/scripts
mv master/bin/scripts bin/scripts
- name: Update the page
run: |

View File

@ -11,27 +11,22 @@ jobs:
sync_pages:
runs-on: ubuntu-latest
steps:
- name: Fetch files
uses: actions/checkout@v4
with:
sparse-checkout: bin/scripts/lib
- name: Prepare file
run: |
echo "Temp dir is /tmp"
cp bin/scripts/lib/fonts.json /tmp
ls -l /tmp/fonts.json
- name: Fetch gh-pages
uses: actions/checkout@v4
with:
ref: gh-pages
- name: Prepare file 2
- name: Fetch files
uses: actions/checkout@v4
with:
sparse-checkout: bin/scripts/lib
path: master
- name: Prepare file
run: |
ls -l /tmp/fonts.json
mkdir temp_data
cp /tmp/fonts.json 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

View File

@ -29,11 +29,10 @@ jobs:
if: ${{ github.repository_owner == 'ryanoasis' }}
steps:
- uses: actions/checkout@v4
- name: Fetch information
uses: actions/checkout@v4
with:
sparse-checkout: |
.
bin/scripts
sparse-checkout: bin/scripts
- name: Determine font matrix
id: set-matrix