Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.git
.github
.gitignore
.gitattributes
.distignore
.editorconfig
.markdownlint.yml
.php-cs-fixer.php
.php-cs-fixer.cache
.phpunit.result.cache
.DS_Store
wp-content
tests/*
data-scripts/*
composer.lock
*.neon
*.dist
41 changes: 41 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
workflow_dispatch:

jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- name: Check out Git repository
uses: actions/checkout@v5

- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4'
coverage: none
tools: composer

- name: Install runtime dependencies
run: composer install --no-dev --optimize-autoloader

- name: WordPress deploy plugin
id: deploy
uses: 10up/action-wordpress-plugin-deploy@stable
with:
generate-zip: true
env:
SLUG: yard-warden
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}

- name: Create GitHub release
uses: softprops/action-gh-release@v2
with:
files: ${{ steps.deploy.outputs.zip-path }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,11 @@
# Yard Warden
# Yard | Warden

Requires at least: 6.3
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.0.3
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Check failure on line 8 in README.md

View workflow job for this annotation

GitHub Actions / linting / Markdown Linting

Bare URL used

README.md:8:14 MD034/no-bare-urls Bare URL used [Context: "https://www.gnu.org/licenses/g..."] https://github.com/DavidAnson/markdownlint/blob/v0.35.0/doc/md034.md

Enhanced password and login security for WordPress.

Expand Down
7 changes: 5 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^3.0",
"yard/php-cs-fixer-rules": "^1.0"
"yard/php-cs-fixer-rules": "^1.0",
"szepeviktor/phpstan-wordpress": "^2.0",
"johnbillion/wp-compat": "^1.5"
},
"autoload": {
"psr-4": {
Expand All @@ -34,7 +36,8 @@
"post-update-cmd": [
"composer dump-autoload"
],
"format": " ./vendor/bin/php-cs-fixer fix"
"format": " ./vendor/bin/php-cs-fixer fix",
"analyse": "vendor/bin/phpstan analyse --debug --memory-limit 1G"
},
"config": {
"allow-plugins": {
Expand Down
Loading
Loading