From 09506d4fe11284d24184b0750243b612c90a45ad Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:01:57 +1100 Subject: [PATCH 1/7] Add WP.org ignore file. --- .distignore | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 .distignore diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..1b1e0eb --- /dev/null +++ b/.distignore @@ -0,0 +1,25 @@ +# Directories to ignore +/.git +/.github +/.wordpress-org +/bin +/node_modules +/tests +/vendor + +# Files to ignore +/.* +/CHANGELOG.md +/CODE_OF_CONDUCT.md +/composer.json +/composer.lock +/CONTRIBUTING.md +/CREDITS.md +/LICENSE +/LICENSE.md +/package-lock.json +/package.json +/phpcs.xml.dist +/phpunit.xml.dist +/README.md +/webpack.config.js From 8cd5d699aba9b4f435a9fadf4dbe29fda71ab689 Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:02:13 +1100 Subject: [PATCH 2/7] Ignore w.org ignore file. --- .gitattributes | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitattributes b/.gitattributes index deae851..b2a72b2 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,6 +1,7 @@ /.github/ export-ignore /bin/ export-ignore /tests/ export-ignore +/.distignore export-ignore /.gitignore export-ignore /.gitattributes export-ignore /phpcs.xml.dist export-ignore From 07640904176eb30fb7aebb73962fda84e2617852 Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:02:29 +1100 Subject: [PATCH 3/7] Add plugin deploy script. --- .github/workflows/worg-deploy.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/worg-deploy.yaml diff --git a/.github/workflows/worg-deploy.yaml b/.github/workflows/worg-deploy.yaml new file mode 100644 index 0000000..4fdb11e --- /dev/null +++ b/.github/workflows/worg-deploy.yaml @@ -0,0 +1,19 @@ +name: Deploy to WordPress.org +on: + push: + tags: + - "*" +jobs: + tag: + name: New tag + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: WordPress Plugin Deploy + uses: 10up/action-wordpress-plugin-deploy@stable + with: + dry-run: true + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} From d239d6ff57dda024285e5c64540416cc1cb4c8f0 Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:06:07 +1100 Subject: [PATCH 4/7] Update version numbers to 1.0.0 --- fonts-to-uploads.php | 2 +- readme.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fonts-to-uploads.php b/fonts-to-uploads.php index 3a89e0a..505027c 100644 --- a/fonts-to-uploads.php +++ b/fonts-to-uploads.php @@ -10,7 +10,7 @@ * @wordpress-plugin * Plugin Name: Fonts to uploads * Description: Relocate the fonts directory to the uploads directory. - * Version: 1.0 + * Version: 1.0.0 * Requires at least: 6.5 * Requires PHP: 7.4 * Author: Peter Wilson diff --git a/readme.txt b/readme.txt index 9524252..b96e368 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Tags: font-library, uploads Requires at least: 6.4 Tested up to: 6.5 Requires PHP: 7.4 -Stable tag: 1.0 +Stable tag: 1.0.0 License: MIT License URI: https://github.com/peterwilsoncc/fonts-to-uploads/blob/main/LICENSE @@ -29,5 +29,5 @@ Simply install the plugin and activate. == Changelog == -= 1.0 = += 1.0.0 = Initial release From 155e82fcd5cadf807c4465945ffc13e8c5a3555e Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:06:39 +1100 Subject: [PATCH 5/7] Run on push while in dry-run mode. --- .github/workflows/worg-deploy.yaml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/worg-deploy.yaml b/.github/workflows/worg-deploy.yaml index 4fdb11e..17609ee 100644 --- a/.github/workflows/worg-deploy.yaml +++ b/.github/workflows/worg-deploy.yaml @@ -1,8 +1,6 @@ name: Deploy to WordPress.org on: - push: - tags: - - "*" + push jobs: tag: name: New tag From c00b8cc5be174fccbe1b133a8c5810002ff5888c Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:14:38 +1100 Subject: [PATCH 6/7] Deploy upon tagging. --- .github/workflows/worg-deploy.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/worg-deploy.yaml b/.github/workflows/worg-deploy.yaml index 17609ee..058dbc8 100644 --- a/.github/workflows/worg-deploy.yaml +++ b/.github/workflows/worg-deploy.yaml @@ -1,6 +1,8 @@ name: Deploy to WordPress.org on: - push + push: + tags: + - "*" jobs: tag: name: New tag @@ -10,8 +12,6 @@ jobs: uses: actions/checkout@v4 - name: WordPress Plugin Deploy uses: 10up/action-wordpress-plugin-deploy@stable - with: - dry-run: true env: SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} SVN_USERNAME: ${{ secrets.SVN_USERNAME }} From 87da901ec6756bccd59d290f2364dcf61a0cb569 Mon Sep 17 00:00:00 2001 From: Peter Wilson <519727+peterwilsoncc@users.noreply.github.com> Date: Tue, 19 Mar 2024 17:14:52 +1100 Subject: [PATCH 7/7] Update readme/assets from main branch. --- .github/workflows/worg-asset-update.yaml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/worg-asset-update.yaml diff --git a/.github/workflows/worg-asset-update.yaml b/.github/workflows/worg-asset-update.yaml new file mode 100644 index 0000000..9008811 --- /dev/null +++ b/.github/workflows/worg-asset-update.yaml @@ -0,0 +1,17 @@ +name: Plugin asset/readme update +on: + push: + branches: + - main +jobs: + main: + name: Push to main + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + - name: WordPress.org plugin asset/readme update + uses: 10up/action-wordpress-plugin-asset-update@stable + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }}