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 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 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 }} diff --git a/.github/workflows/worg-deploy.yaml b/.github/workflows/worg-deploy.yaml new file mode 100644 index 0000000..058dbc8 --- /dev/null +++ b/.github/workflows/worg-deploy.yaml @@ -0,0 +1,17 @@ +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 + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} 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