diff --git a/.github/workflows/push-asset-readme-update.yml b/.github/workflows/push-asset-readme-update.yml index 4e2a6f6..17059fa 100644 --- a/.github/workflows/push-asset-readme-update.yml +++ b/.github/workflows/push-asset-readme-update.yml @@ -7,10 +7,12 @@ jobs: master: name: Push to master runs-on: ubuntu-latest + environment: production steps: - uses: actions/checkout@master - name: WordPress.org plugin asset/readme update uses: 10up/action-wordpress-plugin-asset-update@stable env: SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} - SVN_USERNAME: ${{ secrets.SVN_USERNAME }} \ No newline at end of file + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + IGNORE_OTHER_FILES: true \ No newline at end of file diff --git a/.github/workflows/push-to-deploy.yml b/.github/workflows/push-to-deploy.yml index 2a0d9f2..36031ad 100644 --- a/.github/workflows/push-to-deploy.yml +++ b/.github/workflows/push-to-deploy.yml @@ -7,8 +7,18 @@ jobs: tag: name: New tag runs-on: ubuntu-latest + environment: production steps: - uses: actions/checkout@master + with: + fetch-depth: 0 + - name: Verify release tag is reachable from master + run: | + git fetch --no-tags --depth=50 origin master:refs/remotes/origin/master + if ! git merge-base --is-ancestor "$GITHUB_SHA" refs/remotes/origin/master; then + echo "::error::Tag $GITHUB_REF_NAME ($GITHUB_SHA) is not reachable from master. Refusing to deploy." + exit 1 + fi - name: WordPress Plugin Deploy uses: 10up/action-wordpress-plugin-deploy@master env: diff --git a/README.md b/README.md index 01125ea..c659d11 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ **Tags:** liftlms, course, page-buider, beaver builder, elementor, visual composer **Requires at least:** 4.4 **Requires PHP:** 5.3 -**Tested up to:** 6.9 +**Tested up to:** 7.1 **Stable tag:** 1.0.7 **License:** GPLv2 or later **License URI:** https://www.gnu.org/licenses/gpl-2.0.html diff --git a/composer.json b/composer.json index e112895..1a14906 100644 --- a/composer.json +++ b/composer.json @@ -1,6 +1,11 @@ { "name": "pratikchaskar/custom-template-learndash", "description": "Custom Template Learndash in Astra Theme", + "config": { + "allow-plugins": { + "dealerdirect/phpcodesniffer-composer-installer": true + } + }, "require-dev": { "dealerdirect/phpcodesniffer-composer-installer": "^0.7.0", "wp-coding-standards/wpcs": "dev-master", diff --git a/readme.txt b/readme.txt index 0b7df15..e007db7 100644 --- a/readme.txt +++ b/readme.txt @@ -3,7 +3,7 @@ Contributors: pratikchaskar Tags: liftlms, course, page-buider, beaver builder, elementor, visual composer Requires at least: 4.4 Requires PHP: 5.3 -Tested up to: 6.9 +Tested up to: 7.1 Stable tag: 1.0.7 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html