Generate static data #199
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |