Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/cd_cpan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,27 +3,29 @@ name: Release package to CPAN via Pause
on:
push:
tags:
- 'v*'
- "v*"

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'
perl-version: "5.34"
install-modules: "CPAN::Uploader"

- name: Test and build
env:
IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }}
run: |
cd Geo-IPinfo
cpanm ExtUtils::MakeMaker LWP::UserAgent JSON Cache::LRU Net::CIDR Net::CIDR::Set
perl Makefile.PL && RELEASE_TESTING=TRUE make test && make distcheck && make dist

- name: Upload to CPAN
run: |
cd Geo-IPinfo
Expand Down