diff --git a/.distignore b/.distignore index c101a74..022e7a7 100644 --- a/.distignore +++ b/.distignore @@ -1,7 +1,9 @@ /.git /.github /assets +/dist /test +/vendor /.distignore /.editorconfig /.gitattributes diff --git a/.gitattributes b/.gitattributes index 6cf95d7..d0f8b5b 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1,5 +1,6 @@ /.github export-ignore /assets export-ignore +/dist export-ignore /test export-ignore .distignore export-ignore .gitattributes export-ignore diff --git a/.github/workflows/wordpress-plugin-check.yml b/.github/workflows/wordpress-plugin-check.yml new file mode 100644 index 0000000..75ee649 --- /dev/null +++ b/.github/workflows/wordpress-plugin-check.yml @@ -0,0 +1,21 @@ +name: Plugin check +on: + push: + branches: [ stable', 'release/*' ] + pull_request: + branches: [ stable ] +jobs: + check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Package plugin + run: | + mkdir -p ./dist + rsync -rc --exclude-from=.distignore ./ ./dist/statify-blacklist --delete --delete-excluded + - name: Check WP plugin + uses: wordpress/plugin-check-action@v1 + with: + build-dir: ./dist/statify-blacklist