diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..2ab0d93 --- /dev/null +++ b/.distignore @@ -0,0 +1,25 @@ +/.wordpress-org +/.git +/.github +/config +/node_modules +/tests + +.DS_Store +.babelrc +.browserslistrc +.distignore +.editorconfig +.eslintignore +.eslintrc +.gitignore +.stylelintrc +composer.json +composer.lock +package.json +package-lock.json +phpcs.xml +phpunit.xml +postcss.config.js +README.md +webpack.config.js diff --git a/.github/workflows/dotorg-asset-readme-update.yml b/.github/workflows/dotorg-asset-readme-update.yml new file mode 100644 index 0000000..b63d030 --- /dev/null +++ b/.github/workflows/dotorg-asset-readme-update.yml @@ -0,0 +1,20 @@ +name: Plugin asset/readme update +on: + push: + branches: + - master +jobs: + master: + name: Push to master + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Build + run: | + npm install + npm run build + - name: WordPress.org plugin asset/readme update + uses: 10up/action-wordpress-plugin-asset-update@master + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} diff --git a/.github/workflows/dotorg-deploy.yml b/.github/workflows/dotorg-deploy.yml new file mode 100644 index 0000000..0e9c682 --- /dev/null +++ b/.github/workflows/dotorg-deploy.yml @@ -0,0 +1,20 @@ +name: Deploy to WordPress.org +on: + push: + tags: + - "*" +jobs: + tag: + name: New tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - name: Build + run: | + npm install + npm run build + - name: WordPress Plugin Deploy + uses: 10up/action-wordpress-plugin-deploy@master + env: + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} diff --git a/.wordpress-org/README.md b/.wordpress-org/README.md new file mode 100644 index 0000000..3d1f351 --- /dev/null +++ b/.wordpress-org/README.md @@ -0,0 +1,14 @@ +# WordPress.org-specific assets + +This directory should contain the files that go into the top-level `assets` folder in Subversion, the one that is on the same level as `trunk`. For full documentation, please see the [Plugin Handbook](https://developer.wordpress.org/plugins/wordpress-org/plugin-assets/). Files you may want to add here are: + +* `banner-772x250.(jpg|png)` +* `banner-772x250-rtl.(jpg|png)` +* `banner-1544x500.(jpg|png)` +* `banner-1544x500-rtl.(jpg|png)` +* `icon-128x128.(png|jpg)` +* `icon-256x256.(png|jpg)` +* `icon.svg` +* `screenshot-1.(png|jpg)` +* `screenshot-2.(png|jpg)` +* etc. \ No newline at end of file