-
-
Notifications
You must be signed in to change notification settings - Fork 1
49 lines (41 loc) · 1.1 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
permissions:
id-token: write
pages: write
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 --sudo -qn Data::Mirror Object::Anon
- name: generate data
run: |
mkdir -p _site/root _site/registrars
bin/registrars.pl _site/registrars
bin/root.pl > _site/root/_all.json
- name: configure
uses: actions/configure-pages@v4
- name: upload
uses: actions/upload-pages-artifact@v3
- name: deploy
uses: actions/deploy-pages@v4