Publish to CPAN #12
Workflow file for this run
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: Publish to CPAN | |
on: | |
release: | |
types: [created] | |
jobs: | |
publish-ui: | |
name: Publish to CPAN | |
runs-on: ubuntu-latest | |
environment: Release | |
steps: | |
- uses: actions/checkout@v2 | |
- name: update-version | |
run: | | |
sed -i "s/^\\\$VERSION = '.*';/\\\$VERSION = '${GITHUB_REF_NAME}';/" lib/Test/MockModule.pm | |
- name: install deps | |
run: cpanm install Module::Build | |
- name: Configure | |
run: perl Build.PL | |
- name: install more deps | |
run: ./Build installdeps | |
- name: Test | |
run: ./Build test | |
- name: Build | |
run: ./Build | |
- name: Deliver locally | |
run: ./Build dist | |
- name: Upload to CPAN | |
id: upload | |
uses: thibaultduponchelle/action-upload-to-cpan@master | |
with: | |
username: ${{ secrets.USERNAME }} | |
password: ${{ secrets.PASSWORD }} |