forked from alexmyczko/fnt
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (52 loc) · 1.34 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Update deb822 style cache files
on:
push:
check_run:
schedule:
- cron: "30 23 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
repository: 'crpb/fnt'
ref: 'mirror'
- name: Restore cached Primes
id: cache-primes-restore
uses: actions/cache/restore@v4
with:
key: ${{ runner.os }}-primes
path: |
fonts-main
- name: generate index
run: |
./update.sh
git config --global user.email "[email protected]"
git config --global user.name "fnt index"
git add OFL.xz APACHE.xz || :
if git commit -m $(date -Im); then
git push
fi
- name: upload files
id: deployweb
uses: actions/upload-pages-artifact@v3
with:
path: ./
- name: Always Save Primes
id: cache-primes-save
if: always() && steps.cache-primes-restore.outputs.cache-hit != 'true'
uses: actions/cache/save@v4
with:
key: ${{ steps.cache-primes-restore.outputs.cache-primary-key }}
path: |
fonts-main
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.output.page_url }}
needs: generate index
steps:
- name: deploy webdata
id: deployweb
uses: actions/deploy-pages@v4