Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
josephgodwinkimani committed Mar 5, 2024
0 parents commit a9bf6e9
Show file tree
Hide file tree
Showing 156 changed files with 15,578 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/wordpress-build-zip.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Generate WordPress Archive

on:
push:
branches:
- main

jobs:
generate-archive:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Generating zip
uses: rudlinkon/action-wordpress-build-zip@master
with:
retention-days: 7 # Optional; defaults to 3 - Configuring a custom artifact retention period
# install-composer: true # Optional; defaults to false - Composer dependencies will be installed if you enable this option
# npm-run-build: true # Optional; defaults to false - Set you custom node version
# node-version: 20 # Optional; defaults to 16 - npm run build will be run if you enable this option
19 changes: 19 additions & 0 deletions .github/workflows/wordpress-version-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: WordPress version checker

on:
push
pull_request
schedule:
- cron: '0 0 * * 1'

permissions:
issues: write

jobs:
wordpress-version-checker:
runs-on: ubuntu-latest
steps:
- name: WordPress version checker
uses: skaut/wordpress-version-checker@master
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/wp-deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Deploy with SFTP

on:
push:
branches:
- main
jobs:
deploy_job:
runs-on: ubuntu-latest
name: deploy
steps:
- name: Checkout
uses: actions/checkout@v2
- name: deploy file
uses: wlixcc/SFTP-Deploy-Action@v1.0
with:
username: ${{ secrets.FTP_USERNAME }}
server: ${{ secrets.FTP_SERVER }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
local_path: 'wp-content'
remote_path: '/home/peekaboo/wordpress.kr/public_html/wp-content/themes'
args: '-P 20'
21 changes: 21 additions & 0 deletions .github/workflows/wpcs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: WPCS check

on: [push]

jobs:
phpcs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: WPCS check
uses: 10up/wpcs-action@stable
with:
enable_warnings: false # Enable checking for warnings (-w)
paths: './wp-content' # Paths to check, space separated
# excludes: '' # Paths to excludes, space separated
standard: 'WordPress' # Standard to use. Accepts WordPress|WordPress-Core|WordPress-Docs|WordPress-Extra|WordPress-VIP-Go|WordPressVIPMinimum|10up-Default.
# standard_repo: '' # Public (git) repository URL of the coding standard
# repo_branch: 'master' # Branch of Standard repository
# phpcs_bin_path: 'phpcs' # Custom PHPCS bin path
# use_local_config: 'false' # Use local config if available
# extra_args: '' # Extra arguments passing to the command
16 changes: 16 additions & 0 deletions .htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@

# BEGIN WordPress
# The directives (lines) between "BEGIN WordPress" and "END WordPress" are
# dynamically generated, and should only be modified via WordPress filters.
# Any changes to the directives between these markers will be overwritten.
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress
3 changes: 3 additions & 0 deletions .wordpress-version-checker.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"channel": "stable"
}
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* `local-xdebuginfo.php` is used by LocalWP you can remove it if you opt for other development environments.
1 change: 1 addition & 0 deletions local-xdebuginfo.php
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?php xdebug_info();
Empty file added wp-content/plugins/.gitkeep
Empty file.
34 changes: 34 additions & 0 deletions wp-content/plugins/akismet/.htaccess
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Only allow direct access to specific Web-available files.

# Apache 2.2
<IfModule !mod_authz_core.c>
Order Deny,Allow
Deny from all
</IfModule>

# Apache 2.4
<IfModule mod_authz_core.c>
Require all denied
</IfModule>

# Akismet CSS and JS
<FilesMatch "^(form\.js|akismet(-frontend|-admin)?\.js|akismet(-admin)?(-rtl)?\.css|inter\.css)$">
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>

<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>

# Akismet images
<FilesMatch "^(logo-(a|full)-2x\.png|akismet-refresh-logo\.svg|akismet-refresh-logo@2x\.png|arrow-left\.svg|icon-external\.svg)$">
<IfModule !mod_authz_core.c>
Allow from all
</IfModule>

<IfModule mod_authz_core.c>
Require all granted
</IfModule>
</FilesMatch>
Loading

0 comments on commit a9bf6e9

Please sign in to comment.