diff --git a/.github/workflows/commit-linting.yml b/.github/workflows/commit-linting.yml deleted file mode 100644 index cf89094..0000000 --- a/.github/workflows/commit-linting.yml +++ /dev/null @@ -1,11 +0,0 @@ -name: Commit Linting -on: [pull_request] - -jobs: - commitlint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - uses: wagoid/commitlint-github-action@v5 diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml deleted file mode 100644 index 5854332..0000000 --- a/.github/workflows/continuous-integration.yml +++ /dev/null @@ -1,95 +0,0 @@ -name: Continuous Integration -on: - push: - branches: - - main -jobs: - bumpversion: - runs-on: ubuntu-latest - outputs: - version: ${{ steps.tag_version.outputs.new_version }} - previous_tag: ${{ steps.tag_version.outputs.previous_tag }} - bump_commit_sha: ${{ steps.bumpversion.outputs.commit_hash }} - steps: - - - uses: actions/checkout@v2 - with: - token: ${{ secrets.WC_PAT }} - - - name: Get next version - id: tag_version - uses: mathieudutour/github-tag-action@v6.1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - default_bump: false - default_prerelease_bump: false - dry_run: true - - - name: Update php file version - comment - uses: jacobtomlinson/gha-find-replace@v3 - with: - find: "Version: *[0-9.]*" - replace: "Version: ${{ steps.tag_version.outputs.new_version }}" - include: "openedx-commerce.php" - - - name: Update php file version - define statement - uses: jacobtomlinson/gha-find-replace@v3 - with: - find: "(define\\( 'OPENEDX_COMMERCE_VERSION', ')([^']*)(.*);" - replace: "define( 'OPENEDX_COMMERCE_VERSION', '${{ steps.tag_version.outputs.new_version }}' );" - include: "openedx-commerce.php" - - - name: Update README version - uses: jacobtomlinson/gha-find-replace@v3 - with: - find: "Stable tag: *[0-9.]*" - replace: "Stable tag: ${{ steps.tag_version.outputs.new_version }}" - include: "README.txt" - - - name: Update Changelog - if: steps.tag_version.outputs.new_version - uses: stefanzweifel/changelog-updater-action@v1 - with: - latest-version: ${{ steps.tag_version.outputs.new_tag }} - release-notes: ${{ steps.tag_version.outputs.changelog }} - - - name: Commit bumpversion - id: bumpversion - if: steps.tag_version.outputs.new_version - uses: stefanzweifel/git-auto-commit-action@v4 - with: - branch: ${{ github.ref }} - commit_message: "docs(bumpversion): ${{ steps.tag_version.outputs.previous_tag }} → ${{ steps.tag_version.outputs.new_tag }}" - file_pattern: README.txt CHANGELOG.md openedx-commerce.php - - release: - needs: bumpversion - if: needs.bumpversion.outputs.version - runs-on: ubuntu-latest - outputs: - tag: ${{ steps.tag_version.outputs.new_tag }} - changelog: ${{ steps.tag_version.outputs.changelog }} - - steps: - - - uses: actions/checkout@v2 - with: - token: ${{ secrets.WC_PAT }} - - - name: Create tag - id: tag_version - uses: mathieudutour/github-tag-action@v6.1 - with: - github_token: ${{ secrets.GITHUB_TOKEN }} - commit_sha: ${{ needs.bumpversion.outputs.bump_commit_sha }} - default_bump: false - default_prerelease_bump: false - - - name: Create a GitHub release - if: steps.tag_version.outputs.new_tag - uses: ncipollo/release-action@v1 - with: - tag: ${{ steps.tag_version.outputs.new_tag }} - name: Release ${{ steps.tag_version.outputs.new_tag }} - body: ${{ steps.tag_version.outputs.changelog }} - artifacts: "openedx-commerce.zip" diff --git a/.github/workflows/upload-release-zip.yml b/.github/workflows/upload-release-zip.yml index c9158ab..f353378 100644 --- a/.github/workflows/upload-release-zip.yml +++ b/.github/workflows/upload-release-zip.yml @@ -1,11 +1,8 @@ -name: Build & Upload zip +name: Upload zip to latest release -# Only trigger, when the build workflow succeeded on: - workflow_run: - workflows: ["Continuous Integration"] - types: - - completed + release: + types: [published] jobs: upload_zip: diff --git a/CHANGELOG.md b/CHANGELOG.md index 14675b2..f6f9b79 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,14 @@ +## v2.0.3 - 2024-04-02 + +### [2.0.3](https://github.com/openedx/openedx-wordpress-ecommerce/compare/v2.0.1...v2.0.3) (2024-04-02) + +### Bug Fixes + +* fix: remove the exclusion of NonceVerification in phpcs and fix the issues (#67) +* fix: internationalization and slug text domain congruence (#69) +* fix: add naming convention rule (#70) +* fix: delete unused workflows and generate zip with releases (#71) + ## v2.0.2 - 2023-12-20 ### [2.0.2](https://github.com/openedx/openedx-wordpress-ecommerce/compare/v2.0.1...v2.0.2) (2023-12-20) diff --git a/README.txt b/README.txt index 8fc4890..6465301 100644 --- a/README.txt +++ b/README.txt @@ -4,7 +4,7 @@ Tags: openedx, open edx, ecommerce, lms, courses Requires at least: 6.3 Tested up to: 6.3 Requires PHP: 8.0 -Stable tag: 2.0.2 +Stable tag: 2.0.3 License: GPLv2 or later License URI: http://www.gnu.org/licenses/gpl-2.0.html diff --git a/openedx-commerce.php b/openedx-commerce.php index 9658b4f..aa6e7a3 100644 --- a/openedx-commerce.php +++ b/openedx-commerce.php @@ -3,7 +3,7 @@ * Plugin Name: Open edX Commerce * Plugin URI: https://github.com/eduNEXT/openedx-wordpress-ecommerce * Description: Easily connect your WooCommerce store to Open edX. - * Version: 2.0.2 + * Version: 2.0.3 * Author: eduNEXT * Author URI: https://edunext.co/ * License: GPL-2.0+ @@ -32,7 +32,7 @@ * Start at version 1.0.0 and use SemVer - https://semver.org * Rename this for your plugin and update it as you release new versions. */ -define( 'OPENEDX_COMMERCE_VERSION', '2.0.2' ); +define( 'OPENEDX_COMMERCE_VERSION', '2.0.3' ); /** * The code that runs during plugin activation.