Skip to content

Commit

Permalink
3rd TRY to run 'Deploy to WordPress.org Repository' latest after the …
Browse files Browse the repository at this point in the history
…real release event
  • Loading branch information
carstingaxion committed May 29, 2024
1 parent d1711f0 commit d1b687e
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions .github/workflows/wordpress-org-deploy.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
name: Deploy to WordPress.org Repository

# on:
# release:
# types: [published]

# jobs:
# deploy-to-wp-repository:
# name: Deploy to WP.org
# if: ${{ ! github.event.release.prerelease }}
# runs-on: ubuntu-latest
# steps:
on:
release:
types: [published]
types: [edited]
push:
# commit_message: 'Update version to '
branches:
- main

jobs:
deploy-to-wp-repository:
name: Deploy to WP.org
if: ${{ ! github.event.release.prerelease }}
runs-on: ubuntu-latest
if: github.event.release && github.event.release.edited == true && contains(github.event.head_commit.message, 'Update version to ')
steps:

# - name: Checkout code
# uses: actions/checkout@v4
# - name: Build
Expand Down

0 comments on commit d1b687e

Please sign in to comment.