-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: 🟢 Deploy Release | ||
on: | ||
pull_request: | ||
types: | ||
- closed | ||
workflow_dispatch: | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Run release-please | ||
uses: google-github-actions/release-please-action@v3 | ||
id: release | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
command: manifest | ||
default-branch: main | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup PHP 7.4 | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: "7.4" | ||
extensions: pcov | ||
|
||
- name: Install PHP dependencies | ||
uses: ramsey/composer-install@v1 | ||
with: | ||
composer-options: '-oa --no-dev' | ||
|
||
- name: Install and Setup Node 16.x | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 16 | ||
|
||
- name: Install NPM dependencies | ||
run: | | ||
npm install | ||
- name: Build The Artifact | ||
run: | | ||
npm run build | ||
- name: 🚀 Deploy WordPress Plugin | ||
uses: 10up/action-wordpress-plugin-deploy@develop | ||
env: | ||
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} | ||
SVN_USERNAME: ${{ secrets.SVN_USERNAME }} | ||
SLUG: sim-site-maintenance | ||
BUILD_DIR: ./build/trunk/ | ||
INPUT_DRY_RUN: false | ||
VERSION: ${{ steps.release.outputs.tag_name }} |