diff --git a/.distignore b/.distignore new file mode 100644 index 0000000..8ce2a90 --- /dev/null +++ b/.distignore @@ -0,0 +1,9 @@ +# Directories +/.wordpress-org +/.git +/.github +/node_modules + +# Files +.distignore +.gitignore diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..87b71d4 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,7 @@ +# Directories +/.wordpress-org export-ignore +/.github export-ignore + +# Files +/.gitattributes export-ignore +/.gitignore export-ignore diff --git a/.github/workflows/deploy-to-wporg.yml b/.github/workflows/deploy-to-wporg.yml new file mode 100644 index 0000000..682abb9 --- /dev/null +++ b/.github/workflows/deploy-to-wporg.yml @@ -0,0 +1,22 @@ +# This workflow automatically updates the plugin on WordPress.org +# when a tag is pushed to this repo. +name: Deploy to WordPress.org +on: + push: + tags: + - "*" +jobs: + tag: + name: New tag + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master +# - name: Build # Remove or modify this step as needed +# run: | +# npm install +# npm run build + - 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/.github/workflows/update-wpdororg-assets.yml b/.github/workflows/update-wpdororg-assets.yml new file mode 100644 index 0000000..5f1602e --- /dev/null +++ b/.github/workflows/update-wpdororg-assets.yml @@ -0,0 +1,16 @@ +name: Plugin asset/readme update +on: + push: + branches: + - master +jobs: + trunk: + name: Push to trunk + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - 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/banner-772x250.png b/.wordpress-org/banner-772x250.png similarity index 100% rename from banner-772x250.png rename to .wordpress-org/banner-772x250.png diff --git a/icon-128x128.png b/.wordpress-org/icon-128x128.png similarity index 100% rename from icon-128x128.png rename to .wordpress-org/icon-128x128.png diff --git a/screenshot-1.png b/.wordpress-org/screenshot-1.png similarity index 100% rename from screenshot-1.png rename to .wordpress-org/screenshot-1.png diff --git a/screenshot-2.png b/.wordpress-org/screenshot-2.png similarity index 100% rename from screenshot-2.png rename to .wordpress-org/screenshot-2.png diff --git a/screenshot-3.png b/.wordpress-org/screenshot-3.png similarity index 100% rename from screenshot-3.png rename to .wordpress-org/screenshot-3.png diff --git a/screenshot-4.png b/.wordpress-org/screenshot-4.png similarity index 100% rename from screenshot-4.png rename to .wordpress-org/screenshot-4.png diff --git a/screenshot-5.png b/.wordpress-org/screenshot-5.png similarity index 100% rename from screenshot-5.png rename to .wordpress-org/screenshot-5.png