Skip to content

update-cpansa-json #1519

update-cpansa-json

update-cpansa-json #1519

Workflow file for this run

name: update-cpansa-json
on:
schedule:
- cron: "0 0 * * *"
push:
branches: ["main"]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
permissions:
contents: read
pages: write
id-token: write
jobs:
build:
runs-on: ubuntu-latest
container:
image: perl:latest
steps:
- uses: actions/checkout@v2
- name: perl -V
run: perl -V
- name: Setup
run: ./setup.sh
- name: Generate
run: ./generate.sh
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
# - name: Run Tests
# run: prove -v -l t
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2