From b905055843ce164da71ada71b7032beb30e23c70 Mon Sep 17 00:00:00 2001 From: Pascal Martineau Date: Tue, 5 Aug 2025 14:33:26 -0400 Subject: [PATCH] feat: Initial composer project --- .gitea/workflows/deploy.yaml | 10 ++-------- .gitignore | 1 + composer.json | 3 +++ composer.lock | 18 ++++++++++++++++++ 4 files changed, 24 insertions(+), 8 deletions(-) create mode 100644 composer.json create mode 100644 composer.lock diff --git a/.gitea/workflows/deploy.yaml b/.gitea/workflows/deploy.yaml index e0a0c7d..b1a8de2 100644 --- a/.gitea/workflows/deploy.yaml +++ b/.gitea/workflows/deploy.yaml @@ -9,17 +9,11 @@ jobs: - name: Checkout code uses: actions/checkout@v4 - - name: Check versions - run: | - php -v - composer -V - node -v - - name: Clone 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: List files in the repository - run: ls -la ${{ gitea.workspace }} + - name: Run deployment script + run: /tmp/wp-scripts/deploy.sh diff --git a/.gitignore b/.gitignore index d04ad11..5e6f8bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ /* !/.gitea !/.gitignore +!/composer.* diff --git a/composer.json b/composer.json new file mode 100644 index 0000000..fd393a0 --- /dev/null +++ b/composer.json @@ -0,0 +1,3 @@ +{ + "name": "wp-sites/wp-skeleton" +} \ No newline at end of file diff --git a/composer.lock b/composer.lock new file mode 100644 index 0000000..32279cf --- /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": "6acb315fc71daec54cc1b9d8a17898b0", + "packages": [], + "packages-dev": [], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": [], + "prefer-stable": false, + "prefer-lowest": false, + "platform": [], + "platform-dev": [], + "plugin-api-version": "2.6.0" +}