-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (40 loc) · 1.12 KB
/
generate.yaml
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
name: Generate static data
on:
schedule:
- cron: "52 */4 * * *"
workflow_dispatch:
env:
DEBIAN_FRONTEND: noninteractive
jobs:
generate:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: install deps
run: |
sudo apt -qqq update
sudo apt -qqq install \
cpanminus \
libdatetime-perl \
libdevel-confess-perl \
libjson-xs-perl \
liblwp-protocol-https-perl \
libtest-exception-perl \
libtext-csv-xs-perl \
libxml-libxml-perl \
libyaml-perl
cpanm -qn Data::Mirror Object::Anon
- name: generate data
run: |
mkdir -p data/root data/registrars
bin/registrars.pl data/registrars
bin/root.pl data/root
- name: generate artifact
run: tar --directory=data -z -c -v -f github-pages .
- name: configure
uses: actions/configure-pages@v4
- name: upload
uses: actions/upload-pages-artifact@v3
- name: deploy
uses: actions/deploy-pages@v4