Generate web page #23501
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 web page | |
on: | |
push: | |
branches: '*' | |
schedule: | |
- cron: '0 */6 * * *' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
container: davorg/perl-perlanet:latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Create pages | |
run: | | |
perlanet > perlanet.log 2>&1 | |
perlanet longrc > long.log 2>&1 | |
perlanet shortrc > short.log 2>&1 | |
- 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 | |