Publish to CPAN #57
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: 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 }} |