Skip to content

Create Plugin Release #9

Create Plugin Release

Create Plugin Release #9

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