Fix release workflow #20
Workflow file for this run
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: Release package to CPAN via Pause | |
| on: | |
| push: | |
| tags: | |
| - "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" | |
| - name: Test and build | |
| env: | |
| IPINFO_TOKEN: ${{ secrets.IPINFO_TOKEN }} | |
| run: | | |
| cd Geo-IPinfo | |
| cpanm --notest --installdeps . | |
| perl Makefile.PL && RELEASE_TESTING=TRUE make test && make distcheck && make dist | |
| - name: Upload to CPAN | |
| run: | | |
| cd Geo-IPinfo | |
| cpan-upload -v -u $USERNAME -p $PASSWORD *.tar.gz | |
| env: | |
| USERNAME: ${{ secrets.PAUSE_USERNAME }} | |
| PASSWORD: ${{ secrets.PAUSE_PASSWORD }} |