Skip to content

Generate web page #13246

Generate web page

Generate web page #13246

Workflow file for this run

name: Generate web page
on:
push:
paths:
- 'perlanetrc'
- 'index.tt'
schedule:
- cron: '0 */4 * * *'
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
container: davorg/perl-perlanet:latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Create pages
run: |
mkdir -p docs
perlanet > perlanet.log 2>&1
- name: Make JSON file
run: |
bin/link-json docs/atom.xml > docs/links.json
- name: Archive perlanet logs
uses: actions/upload-artifact@v4
with:
name: perlanet.log
path: ./perlanet.log
retention-days: 3
- name: Update pages artifact
uses: actions/upload-pages-artifact@v3
with:
path: docs/
deploy:
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4