Skip to content

Commit

Permalink
Create cd_cpan.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
abu-usama authored Sep 14, 2023
1 parent ee04e64 commit 15e1a5c
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/cd_cpan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release package to cpan via Pause

on: workflow_dispatch

jobs:
publish:
runs-on: ubuntu-latest
steps:
- 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 and run tests
- run: cpanm --installdeps .
- 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 }}

0 comments on commit 15e1a5c

Please sign in to comment.