@ryansmith94/moodle-plugin-release
v2.0.2
Published
A CLI tool to automatically make releases to the Moodle Plugin Registry.
Downloads
2
Readme
DEPRECATED DUE TO MOODLE API LIMITATIONS
Moodle Plugin Release
A CLI tool to automatically make releases to the Moodle Plugin Registry.
Usage
- Install with
npm i -D -E @ryansmith94/moodle-plugin-release
. - Add a
moodle-plugin-release
script to yourpackage.json
file usingmoodle-plugin-release release -i <pluginId> -z <zipFile>
. - Add Travis deploy step.
- Add Travis environment variables.
Travis CI Deploy Step
deploy:
- provider: script
script: npm install && npm run moodle-plugin-release
skip_cleanup: true
on:
tags: true
php: 7.1
Travis CI Environment Variables
Requires the following custom environment variables in the Travis project settings.
MOODLE_USERNAME
- Your Moodle username.MOODLE_PASSWORD
- Your Moodle password.GH_TOKEN
- Github Personal Access Token.
This tool also uses the following pre-defined environment variables.
TRAVIS_REPO_SLUG
- The slug of the Github repository (e.g.ryansmith94/moodle-plugin-release
).TRAVIS_TAG
- The release tag on Github (e.g.v1.0.0
).