From aaa586698d9d8304b066c6937f045d0574e4020b Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Thu, 30 May 2024 15:23:14 -0600 Subject: [PATCH 1/3] Add the WordPress Version Checker workflow --- .../workflows/wordpress-version-checker.yml | 25 +++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .github/workflows/wordpress-version-checker.yml diff --git a/.github/workflows/wordpress-version-checker.yml b/.github/workflows/wordpress-version-checker.yml new file mode 100644 index 0000000..239f529 --- /dev/null +++ b/.github/workflows/wordpress-version-checker.yml @@ -0,0 +1,25 @@ +name: WordPress version checker + +on: + push: + branches: + - develop + - main + pull_request: + branches: + - develop + 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@v2.2.0 + with: + repo-token: ${{ secrets.GITHUB_TOKEN }} From 63ad58ce184d5b942b62b55d903d32d94e779fde Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Thu, 30 May 2024 15:31:18 -0600 Subject: [PATCH 2/3] Add the Build Release Zip workflow along with our ignore files --- .distignore | 22 ++++++++++++++++++++++ .gitattributes | 19 +++++++++++++++++++ .github/workflows/build-release-zip.yml | 22 ++++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 .distignore create mode 100644 .gitattributes create mode 100644 .github/workflows/build-release-zip.yml diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..3f84ffc --- /dev/null +++ b/.distignore @@ -0,0 +1,22 @@ +# Directories to ignore +/.git +/.github +/.wordpress-org +/node_modules +/tests +/vendor + +# Files to ignore +/.* +/CHANGELOG.md +/CODE_OF_CONDUCT.md +/composer.json +/composer.lock +/CONTRIBUTING.md +/CREDITS.md +/LICENSE.md +/package-lock.json +/package.json +/phpcs-compat.xml +/phpcs.xml +/README.md diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..5639158 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,19 @@ +/.github export-ignore +/.wordpress-org export-ignore +/node_modules export-ignore +/tests export-ignore +/vendor export-ignore + +/.* export-ignore +/CHANGELOG.md export-ignore +/CODE_OF_CONDUCT.md export-ignore +/composer.json export-ignore +/composer.lock export-ignore +/CONTRIBUTING.md export-ignore +/CREDITS.md export-ignore +/LICENSE.md export-ignore +/package-lock.json export-ignore +/package.json export-ignore +/phpcs-compat.xml export-ignore +/phpcs.xml export-ignore +/README.md export-ignore diff --git a/.github/workflows/build-release-zip.yml b/.github/workflows/build-release-zip.yml new file mode 100644 index 0000000..79019ae --- /dev/null +++ b/.github/workflows/build-release-zip.yml @@ -0,0 +1,22 @@ +name: Build release zip + +on: + workflow_dispatch: + workflow_call: + push: + branches: + - main + +jobs: + build: + name: Build release zip + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Generate ZIP file + uses: 10up/action-wordpress-plugin-build-zip@stable + env: + SLUG: mailchimp From e06697116d920677917614c312b402eb234d7eb2 Mon Sep 17 00:00:00 2001 From: Darin Kotter Date: Thu, 30 May 2024 15:31:43 -0600 Subject: [PATCH 3/3] Add config file --- .wordpress-version-checker.json | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 .wordpress-version-checker.json diff --git a/.wordpress-version-checker.json b/.wordpress-version-checker.json new file mode 100644 index 0000000..9aa58aa --- /dev/null +++ b/.wordpress-version-checker.json @@ -0,0 +1,4 @@ +{ + "readme": "readme.txt", + "channel": "rc" +}