diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml index 4cf78d4..f8b157c 100755 --- a/.github/workflows/action.yml +++ b/.github/workflows/action.yml @@ -1,10 +1,6 @@ name: Deploy to WordPress.org on: - push: - branches: - - master - tags: - - v1.* + [push, pull_request] jobs: tag: name: New tag @@ -13,6 +9,9 @@ jobs: - uses: actions/checkout@master - name: WordPress Plugin Deploy uses: 10up/action-wordpress-plugin-deploy@master + - uses: MilesChou/composer-action@master + with: + args: install env: SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} SVN_USERNAME: ${{ secrets.SVN_USERNAME }} diff --git a/composer.json b/composer.json new file mode 100755 index 0000000..feec62b --- /dev/null +++ b/composer.json @@ -0,0 +1,12 @@ +{ + "require": { + "cmb2/cmb2": "2.7.0" + }, + "autoload": { + "files": ["vendor/cmb2/cmb2/init.php"], + "humanmade/custom-meta-boxes": "dev-master" + }, + "config": { + "vendor-dir": "vendor" + } +}