Script to bump version automatically #2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy to WordPress.org | |
| on: | |
| push: | |
| # tags: | |
| # - "*" | |
| jobs: | |
| tag: | |
| name: New tag | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@master | |
| - name: Setup PHP with composer v2 | |
| uses: shivammathur/setup-php@v2 | |
| - name: Install Node.js via NVM | |
| uses: irby/setup-node-nvm@master | |
| - name: Install Javascript dependencies | |
| run: | | |
| npm install | |
| - name: Package | |
| run: | | |
| ./scripts/package.sh | |
| - name: Remove zip file | |
| run: | | |
| rm common-knowledge-join-flow.zip | |
| - name: WordPress Plugin Deploy | |
| uses: 10up/action-wordpress-plugin-deploy@stable | |
| with: | |
| dry-run: true | |
| env: | |
| SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | |
| SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | |
| SLUG: common-knowledge-join-flow | |
| BUILD_DIR: dist/common-knowledge-join-flow |