Skip to content

Commit

Permalink
Merge pull request #107 from jdevalk/trunk
Browse files Browse the repository at this point in the history
Merge trunk to main
  • Loading branch information
jdevalk authored Mar 31, 2023
2 parents 20f42c1 + 185aa35 commit 4490e2b
Show file tree
Hide file tree
Showing 33 changed files with 1,008 additions and 112 deletions.
33 changes: 0 additions & 33 deletions .codeclimate.yml

This file was deleted.

17 changes: 17 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/.wordpress-org
/.git
/.github
/.cache
/node_modules
/tests
/grunt

.phpcs.xml.dist
.distignore
.gitignore
.removeable-files
Gruntfile.js
package.json
phpmd.xml
phpunit.xml.dist
yarn.lock
3 changes: 1 addition & 2 deletions .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
# https://www.reddit.com/r/PHP/comments/2jzp6k/i_dont_need_your_tests_in_my_production
# https://blog.madewithlove.be/post/gitattributes/
#
.codeclimate.yml export-ignore
.eslintignore export-ignore
.eslintrc export-ignore
.gitattributes export-ignore
Expand All @@ -21,7 +20,7 @@ yarn.lock export-ignore
/.cache export-ignore
/.github export-ignore
/grunt export-ignore
/svn-assets export-ignore
/.wordpress-org export-ignore
/tests export-ignore

#
Expand Down
44 changes: 44 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: "Deploy to WordPress.org and create release on GitHub"

on:
workflow_dispatch:
inputs:
tags:
description: 'Tag to run for'
push:
tags:
- "v*"

jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Build
run: |
composer install --no-dev --prefer-dist --optimize-autoloader --no-scripts
yarn install
grunt build
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: yoast-comment-hacks # optional, remove if GitHub repo name matches SVN slug, including capitalization
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
2 changes: 1 addition & 1 deletion .github/workflows/security.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ jobs:
# This action checks the `composer.lock` file against known security vulnerabilities in the dependencies.
# https://github.com/marketplace/actions/the-php-security-checker
- name: Run Security Check
uses: symfonycorp/security-checker-action@v4
uses: symfonycorp/security-checker-action@v5
16 changes: 16 additions & 0 deletions .github/workflows/update-readme.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: "Plugin asset/readme update"

on:
workflow_dispatch:

jobs:
trunk:
name: Push to trunk
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- 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 }}
9 changes: 0 additions & 9 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -122,13 +122,4 @@
</properties>
</rule>

<!-- Direct database queries need careful review.
Ticket: https://github.com/Yoast/comment-hacks/issues/50
-->
<rule ref="WordPress.DB.DirectDatabaseQuery">
<exclude-pattern>/admin/comment-parent\.php$</exclude-pattern>
<exclude-pattern>/inc/clean-emails\.php$</exclude-pattern>
<exclude-pattern>/inc/email-links\.php$</exclude-pattern>
</rule>

</ruleset>
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added .wordpress-org/screenshot-3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Binary file added .wordpress-org/screenshot-5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 4490e2b

Please sign in to comment.