Skip to content

Release package to CPAN via Pause #2

Release package to CPAN via Pause

Release package to CPAN via Pause #2

Workflow file for this run

name: Release package to CPAN via Pause
on:
workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Perl environment
uses: shogo82148/actions-setup-perl@v1
with:
perl-version: '5.34'
install-modules: 'CPAN::Uploader'
- name: Install dependencies
run: cpanm --installdeps .
- name: Run tests
run: prove -lv t
- name: Upload to CPAN
run: cpan-upload --dry-run -v -u $USERNAME -p $PASSWORD *.tar.gz
env:
RELEASE_TESTING: TRUE
USERNAME: ${{ secrets.PAUSE_USERNAME }}
PASSWORD: ${{ secrets.PAUSE_PASSWORD }}