diff --git a/.github/workflows/moodle-release.yml b/.github/workflows/moodle-release.yml index 4328af0..22ae8bd 100644 --- a/.github/workflows/moodle-release.yml +++ b/.github/workflows/moodle-release.yml @@ -31,7 +31,7 @@ defaults: jobs: release: runs-on: ubuntu-latest - if: ${{ github.event.workflow_run.conclusion == 'success' or github.event.workflow_dispatch.inputs.tag }} + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_dispatch.inputs.tag }} env: PLUGIN: mod_kialo CURL: curl -s diff --git a/development/README.md b/development/README.md index 07ce47e..bdf5ba2 100644 --- a/development/README.md +++ b/development/README.md @@ -122,11 +122,13 @@ We use GitHub Actions to automatically create a release whenever a new tag is pu See `.github/workflows/moodle-release.yml` for details. To create a new release, follow these steps: -1. Ensure the version in `version.php` has been incremented. +1. Ensure the version in `version.php` has been incremented. Commit and push the change. 2. Create a new tag, e.g. `git tag v1.2.3` 3. Push the tag to GitHub: `git push origin v1.2.3` 4. Wait for the release to be created on GitHub. This can take a few minutes. -5. Check the release [on GitHub](https://github.com/kialo/moodle-mod_kialo/releases) and ensure the zip file is attached. + See https://github.com/kialo/moodle-mod_kialo/actions/workflows/moodle-release.yml. + Note that the release workflow is only triggered once the CI for the new tag has completed successfully. +5. Check the release [on GitHub](https://github.com/kialo/moodle-mod_kialo/releases) and ensure the `mod_kialo.zip` file is attached. 6. Check the release on https://moodle.org/plugins/mod_kialo and ensure the version number is correct. ### Manual Release diff --git a/version.php b/version.php index 306fd64..011c12b 100644 --- a/version.php +++ b/version.php @@ -27,7 +27,7 @@ /** @var stdClass $plugin */ $plugin->component = 'mod_kialo'; $plugin->release = '1.0.15'; -$plugin->version = 2023091102; +$plugin->version = 2023091102; // Must be incremented for each new release! // Officially we require PHP 7.4. The first Moodle version that requires this as a minimum is Moodle 4.1. // But technically this plugin also runs on older Moodle versions, as long as they run on PHP 7.4,