From 85c78d55cbd5dfc26e812eed2db80e308f0eb811 Mon Sep 17 00:00:00 2001 From: Rafael Meneses Date: Thu, 12 Dec 2024 14:48:41 -0300 Subject: [PATCH] using .distignore (#22) --- .distignore | 10 ++++++++++ .gitattributes | 11 ----------- .github/workflows/deploy.yml | 6 +----- 3 files changed, 11 insertions(+), 16 deletions(-) create mode 100644 .distignore delete mode 100644 .gitattributes diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..7444dc3 --- /dev/null +++ b/.distignore @@ -0,0 +1,10 @@ +/.wordpress-org +/.git +/.github + +.editorconfig +.distignore +.gitignore +composer.json +composer.lock +.phpcs.xml diff --git a/.gitattributes b/.gitattributes deleted file mode 100644 index 07dcaed..0000000 --- a/.gitattributes +++ /dev/null @@ -1,11 +0,0 @@ -# Directories -/.wordpress-org export-ignore -/.github export-ignore - -# Files -/.editorconfig export-ignore -/.gitattributes export-ignore -/.gitignore export-ignore -/.phpcs.xml export-ignore -/.composer.json export-ignore -/.composer.lock export-ignore diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 47017fc..65b301d 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -15,11 +15,7 @@ jobs: # 10up/action-wordpress-plugin-deploy is not adding the vendor folder due to .gitignore so we need to add it manually # also uses their user to commit the vendor folder # https://github.com/10up/action-wordpress-plugin-deploy/blob/408b966c84f07de4f648a0fd04f103ba72b18590/deploy.sh#L113 - run: | - composer install --no-dev --optimize-autoloader - git config --global user.email "10upbot+github@10up.com" - git config --global user.name "10upbot on GitHub" - git add -f vendor && git commit -m "Add vendor folder" + run: composer install --no-dev --optimize-autoloader - name: WordPress Plugin Deploy uses: 10up/action-wordpress-plugin-deploy@stable with: