Skip to content

Commit a117ff7

Browse files
authored
Merge pull request #232 from wp-graphql/claude-code
ci: attempt to fix automatic deploy to WordPress.org
2 parents 4e1d275 + d290aea commit a117ff7

File tree

5 files changed

+31
-2
lines changed

5 files changed

+31
-2
lines changed

.changeset/fix-wordpress-deploy.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wpgraphql-ide": patch
3+
---
4+
5+
Fixed an issue with plugin updates not appearing on WordPress.org

.changeset/shy-cycles-pump.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"wpgraphql-ide": patch
3+
---
4+
5+
ci: attempt to fix GitHub actions auto deploy to wp.org.

.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: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,17 @@ jobs:
3939
run: |
4040
echo "Published: ${{ steps.changesets.outputs.published }}"
4141
42+
- name: Create and push git tag
43+
if: steps.changesets.outputs.published == 'true'
44+
run: |
45+
VERSION=${{ fromJSON(steps.changesets.outputs.publishedPackages)[0].version }}
46+
TAG="v${VERSION}"
47+
echo "Creating tag: ${TAG}"
48+
git config user.name "github-actions[bot]"
49+
git config user.email "github-actions[bot]@users.noreply.github.com"
50+
git tag -a "${TAG}" -m "Release ${TAG}"
51+
git push origin "${TAG}"
52+
4253
- name: Upload release artifact
4354
if: steps.changesets.outputs.published == 'true'
4455
uses: svenstaro/upload-release-action@v2
@@ -48,3 +59,10 @@ jobs:
4859
asset_name: wpgraphql-ide.zip
4960
tag: ${{ format('v{0}', fromJSON(steps.changesets.outputs.publishedPackages)[0].version) }}
5061
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 }}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)