Release package to CPAN via Pause #5
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: 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: Test and build | |
run: | | |
cd Geo-IPinfo | |
perl Makefile.PL && make test && make distcheck && make dist | |
- 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 }} |