Skip to content

Publish to CPAN

Publish to CPAN #53

Workflow file for this run

name: Publish to CPAN
on:
workflow_dispatch
#release:
# types: [created]
jobs:
build-and-release:
runs-on: ubuntu-latest
name: Build and release Convert::Pheno to CPAN
steps:
- uses: actions/checkout@v2
- name: Install cpanminus
run: curl -L https://cpanmin.us | perl - --sudo App::cpanminus
- name: Install dependencies
run: cpanm --sudo File::ShareDir::Install
- name: Configure
run: perl Makefile.PL
- name: Create MANIFEST
run: make manifest
- name: Build
run: make
- name: Deliver locally
run: make dist
- name: Upload to CPAN
id: upload
uses: thibaultduponchelle/action-upload-to-cpan@master
with:
username: ${{ secrets.CPAN_USER }}
password: ${{ secrets.CPAN_PASSWORD }}