diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..f660ff4 --- /dev/null +++ b/.distignore @@ -0,0 +1,16 @@ +/.git +/.github +/assets +/test +/.distignore +/.gitattributes +/.gitignore +/.travis.yml +/composer.json +/composer.lock +/CONTRIBUTING.md +/package.json +/package-lock.json +/phpcs.xml +/phpunit.xml +/RoboFile.php diff --git a/.gitattributes b/.gitattributes index c323621..8c5a657 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,7 @@ +/.github export-ignore /assets export-ignore /test export-ignore +.distignore export-ignore .gitattributes export-ignore .gitignore export-ignore .travis.yml export-ignore diff --git a/.github/workflows/wordpress-plugin-asset-update.yml b/.github/workflows/wordpress-plugin-asset-update.yml new file mode 100644 index 0000000..825502c --- /dev/null +++ b/.github/workflows/wordpress-plugin-asset-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@v2 + - name: Clean README.md + run: tail -n +6 README.md > README.md.tmp && mv README.md.tmp README.md + - name: WordPress.org plugin asset/readme update + uses: 10up/action-wordpress-plugin-asset-update@stable + env: + ASSETS_DIR: assets + README_NAME: README.md + SVN_PASSWORD: ${{ secrets.WP_SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.WP_SVN_USERNAME }} diff --git a/.github/workflows/wordpress-plugin-deploy.yml b/.github/workflows/wordpress-plugin-deploy.yml new file mode 100644 index 0000000..13da47c --- /dev/null +++ b/.github/workflows/wordpress-plugin-deploy.yml @@ -0,0 +1,20 @@ +name: Deploy to WordPress.org +on: + push: + tags: + - "v*" + - "!v*-*" +jobs: + tag: + name: New tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Clean README.md + run: tail -n +6 README.md > README.md.tmp && mv README.md.tmp README.md + - name: WordPress Plugin Deploy + uses: 10up/action-wordpress-plugin-deploy@stable + env: + ASSETS_DIR: assets + SVN_PASSWORD: ${{ secrets.WP_SVN_PASSWORD }} + SVN_USERNAME: ${{ secrets.WP_SVN_USERNAME }}