Skip to content

Commit

Permalink
Create deploy-only.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
devuri authored Jul 27, 2024
1 parent 5907648 commit e57433e
Showing 1 changed file with 55 additions and 0 deletions.
55 changes: 55 additions & 0 deletions .github/workflows/deploy-only.yml
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 }}

0 comments on commit e57433e

Please sign in to comment.