@ryansmith94/moodle-plugin-release

2.0.2 • Public • Published

DEPRECATED DUE TO MOODLE API LIMITATIONS

Moodle Plugin Release

A CLI tool to automatically make releases to the Moodle Plugin Registry.

Usage

  1. Install with npm i -D -E @ryansmith94/moodle-plugin-release.
  2. Add a moodle-plugin-release script to your package.json file using moodle-plugin-release release -i <pluginId> -z <zipFile>.
  3. Add Travis deploy step.
  4. 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.

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).

Readme

Keywords

none

Package Sidebar

Install

npm i @ryansmith94/moodle-plugin-release

Weekly Downloads

1

Version

2.0.2

License

GPL-3.0

Unpacked Size

111 kB

Total Files

49

Last publish

Collaborators

  • ryansmith94