Initial commit

This commit is contained in:
wp-sites
2025-08-27 10:35:36 -04:00
commit 79b4fc7565
8 changed files with 143 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
name: WordPress deployment
run-name: ${{ gitea.actor }} deploying ${{ gitea.repository.name }}
on: [push]
jobs:
deploy:
runs-on: ubuntu-websimple
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install WordPress scripts
env:
TEMPLATES_REPO_TOKEN: ${{ secrets.TEMPLATES_REPO_TOKEN }}
run: |
git clone https://$TEMPLATES_REPO_TOKEN@gitea.websimple.com/templates/wp-scripts.git /tmp/wp-scripts
- name: Run deployment script
env:
REMOTE_HOST: ${{ vars.REMOTE_HOST }}
REMOTE_PORT: ${{ vars.REMOTE_PORT }}
REMOTE_USER: ${{ vars.REMOTE_USER }}
REMOTE_PATH: ${{ vars.REMOTE_PATH }}
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
run: /tmp/wp-scripts/wp-deploy.sh

19
.gitignore vendored Normal file
View File

@@ -0,0 +1,19 @@
/*
!/.gitea
!/.gitignore
!/composer.*
!/phpcs.xml
!/wp-content/
/wp-content/*
# WordPress plugins
!/wp-content/mu-plugins/
!/wp-content/plugins/
/wp-content/plugins/*
!/wp-content/plugins/.gitkeep
# WordPress themes
!/wp-content/themes/
/wp-content/themes/*
!/wp-content/themes/.gitkeep
#!/wp-content/themes/wp-skeleton/

18
composer.json Normal file
View File

@@ -0,0 +1,18 @@
{
"name": "wp-sites/wp-skeleton",
"repositories": [
{
"type": "composer",
"url": "https://wpackagist.org"
}
],
"config": {
"allow-plugins": {
"composer/installers": true
},
"optimize-autoloader": true,
"preferred-install": "dist",
"sort-packages": true
},
"require": {}
}

18
composer.lock generated Normal file
View File

@@ -0,0 +1,18 @@
{
"_readme": [
"This file locks the dependencies of your project to a known state",
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "4aa995413150b1483d96d7b2d8d8e272",
"packages": [],
"packages-dev": [],
"aliases": [],
"minimum-stability": "stable",
"stability-flags": [],
"prefer-stable": false,
"prefer-lowest": false,
"platform": [],
"platform-dev": [],
"plugin-api-version": "2.6.0"
}

63
phpcs.xml Normal file
View File

@@ -0,0 +1,63 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="WordPress-Websimple" namespace="WordPressCS\WordPress" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
<description>Custom WordPress coding standards by Websimple.</description>
<file>.</file>
<exclude-pattern>*/node_modules/*</exclude-pattern>
<arg name="encoding" value="utf8"/>
<arg name="extensions" value="php"/>
<rule ref="WordPress">
<exclude name="Generic.CodeAnalysis.AssignmentInCondition.Found"/>
<exclude name="Generic.Commenting.DocComment.MissingShort"/>
<exclude name="Generic.PHP.DisallowShortOpenTag.EchoFound"/>
<exclude name="Squiz.Commenting.BlockComment.Empty"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.Missing"/>
<exclude name="Squiz.Commenting.FileComment.MissingPackageTag"/>
<exclude name="Squiz.Commenting.FileComment.SpacingAfterComment"/>
<exclude name="Squiz.Commenting.FileComment.WrongStyle"/>
<exclude name="Squiz.Commenting.FunctionComment.Missing"/>
<exclude name="Squiz.Commenting.FunctionComment.WrongStyle"/>
<exclude name="Squiz.Commenting.InlineComment.InvalidEndChar"/>
<exclude name="Squiz.Commenting.InlineComment.SpacingBefore"/>
<exclude name="Squiz.ControlStructures.ControlSignature.NewlineAfterOpenBrace"/>
<exclude name="Squiz.PHP.CommentedOutCode.Found"/>
<exclude name="Squiz.PHP.DisallowMultipleAssignments.Found"/>
<exclude name="Squiz.PHP.DisallowMultipleAssignments.FoundInControlStructure"/>
<exclude name="Squiz.PHP.EmbeddedPhp.ShortOpenEchoNoSemicolon"/>
<exclude name="Squiz.Strings.DoubleQuoteUsage.NotRequired"/>
<exclude name="Universal.Files.SeparateFunctionsFromOO.Mixed"/>
<exclude name="Universal.Operators.DisallowShortTernary.Found"/>
<exclude name="WordPress.DB.DirectDatabaseQuery.DirectQuery"/>
<exclude name="WordPress.DB.DirectDatabaseQuery.NoCaching"/>
<exclude name="WordPress.DB.PreparedSQL.InterpolatedNotPrepared"/>
<exclude name="WordPress.DB.PreparedSQLPlaceholders.LikeWildcardsInQuery"/>
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_key"/>
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_query"/>
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_value"/>
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_tax_query"/>
<exclude name="WordPress.Files.FileName.NotHyphenatedLowercase"/>
<exclude name="WordPress.NamingConventions.ValidHookName.UseUnderscores"/>
<exclude name="WordPress.PHP.DiscouragedPHPFunctions.obfuscation_base64_encode"/>
<exclude name="WordPress.PHP.StrictInArray.MissingTrueStrict"/>
<exclude name="WordPress.PHP.YodaConditions.NotYoda"/>
<exclude name="WordPress.Security.EscapeOutput.OutputNotEscaped"/>
<exclude name="WordPress.Security.NonceVerification.Recommended"/>
<exclude name="WordPress.Security.ValidatedSanitizedInput.InputNotSanitized"/>
<exclude name="WordPress.Security.ValidatedSanitizedInput.InputNotValidated"/>
<exclude name="WordPress.Security.ValidatedSanitizedInput.MissingUnslash"/>
<exclude name="WordPress.WP.AlternativeFunctions.file_get_contents_file_get_contents"/>
<exclude name="WordPress.WP.Capabilities.RoleFound"/>
<exclude name="WordPress.WP.DiscouragedFunctions.wp_reset_query_wp_reset_query"/>
<exclude name="WordPress.WP.EnqueuedResources.NonEnqueuedScript"/>
<exclude name="WordPress.WP.GlobalVariablesOverride.Prohibited"/>
<exclude name="WordPress.WP.I18n.MissingTranslatorsComment"/>
</rule>
<rule ref="Internal.NoCodeFound">
<severity>0</severity>
</rule>
</ruleset>

View File

View File

View File