Skip to content

Commit 6f57be6

Browse files
committed
fix automatic deploy to wp.org
1 parent bf627cc commit 6f57be6

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/deploy-to-wordpress.org.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
tags:
55
- "*"
6+
workflow_dispatch:
67

78
jobs:
89
tag:

.github/workflows/release-plugin.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,3 +59,10 @@ jobs:
5959
asset_name: wpgraphql-ide.zip
6060
tag: ${{ format('v{0}', fromJSON(steps.changesets.outputs.publishedPackages)[0].version) }}
6161
overwrite: true
62+
63+
- name: Trigger WordPress.org deployment
64+
if: steps.changesets.outputs.published == 'true'
65+
run: |
66+
gh workflow run deploy-to-wordpress.org.yml
67+
env:
68+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)