Publish to CPAN #6
This file contains hidden or 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 OMOP::CSV::Validator to CPAN | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install cpanminus | |
run: curl -L https://cpanmin.us | perl - --sudo App::cpanminus | |
- 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 }} |