2022-10-18 18:37:02 +02:00
|
|
|
name: Update gh-pages
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
paths:
|
|
|
|
- bin/scripts/lib/fonts.json
|
2022-10-18 20:47:29 +02:00
|
|
|
workflow_dispatch:
|
2022-10-18 18:37:02 +02:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
sync:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Fetch files
|
|
|
|
uses: Bhacaz/checkout-files@v2
|
|
|
|
with:
|
|
|
|
files: bin/scripts/lib/fonts.json
|
2022-10-18 20:47:29 +02:00
|
|
|
branch: ${{ github.sha }}
|
2022-10-18 18:37:02 +02:00
|
|
|
|
2022-10-18 18:57:03 +02:00
|
|
|
- name: Prepare file
|
|
|
|
run: |
|
2022-10-18 20:47:29 +02:00
|
|
|
echo "Temp dir is /tmp"
|
|
|
|
cp bin/scripts/lib/fonts.json /tmp
|
|
|
|
ls -l /tmp/fonts.json
|
2022-10-18 18:57:03 +02:00
|
|
|
|
|
|
|
- name: Fetch gh-pages
|
|
|
|
uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
ref: gh-pages
|
|
|
|
|
2022-10-18 20:47:29 +02:00
|
|
|
- name: Prepare file 2
|
|
|
|
run: |
|
|
|
|
ls -l /tmp/fonts.json
|
|
|
|
mkdir temp_data
|
|
|
|
cp /tmp/fonts.json temp_data
|
|
|
|
|
2022-10-18 18:37:02 +02:00
|
|
|
- name: Deploy to gh-pages
|
|
|
|
uses: JamesIves/github-pages-deploy-action@v4
|
|
|
|
with:
|
2022-10-18 20:47:29 +02:00
|
|
|
folder: temp_data
|
|
|
|
target-folder: _data
|
2022-10-18 18:37:02 +02:00
|
|
|
commit-message: "[ci] Sync fonts.json"
|
|
|
|
git-config-name: GitHub Actions
|
|
|
|
git-config-email: 41898282+github-actions[bot]@users.noreply.github.com
|
|
|
|
clean: false
|