commit 79b4fc756584d231d4ad5ef87077383a06b33e48 Author: wp-sites <> Date: Wed Aug 27 10:35:36 2025 -0400 Initial commit diff --git a/.gitea/workflows/deploy-wp.yaml b/.gitea/workflows/deploy-wp.yaml new file mode 100644 index 0000000..d252b95 --- /dev/null +++ b/.gitea/workflows/deploy-wp.yaml @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2bd1921 --- /dev/null +++ b/.gitignore @@ -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/ diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..0421a46 --- /dev/null +++ b/composer.json @@ -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": {} +} \ No newline at end of file diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..d567d06 --- /dev/null +++ b/composer.lock @@ -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" +} diff --git a/phpcs.xml b/phpcs.xml new file mode 100644 index 0000000..62af51e --- /dev/null +++ b/phpcs.xml @@ -0,0 +1,63 @@ + + + Custom WordPress coding standards by Websimple. + + . + */node_modules/* + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0 + + + diff --git a/wp-content/mu-plugins/.gitkeep b/wp-content/mu-plugins/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/wp-content/plugins/.gitkeep b/wp-content/plugins/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/wp-content/themes/.gitkeep b/wp-content/themes/.gitkeep new file mode 100644 index 0000000..e69de29