Create Plugin Release #9
This file contains 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: Create Plugin Release | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: | |
- closed | |
branches: | |
- 'trunk' | |
jobs: | |
deploy: | |
# if: github.event.pull_request.merged == true && startsWith( github.head_ref, 'release/' ) | |
runs-on: ubuntu-latest | |
name: WPJM Release | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: shivammathur/setup-php@v2 | |
with: | |
php-version: '7.4' | |
tools: composer | |
coverage: none | |
- name: Install JS dependencies | |
run: npm ci | |
- name: Install PHP dependencies | |
run: composer install --no-ansi --no-interaction --prefer-dist --no-progress | |
- name: Setup Git | |
run: | | |
git config user.name "WPJM GitHub Actions Bot" | |
git config user.email "<>" | |
- name: Create Release | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
run: npm run release:create 6 |