Add CI for deployment to WordPress.org (#91)
Some checks failed
Plugin asset/readme update on WordPress.org / Push assets to trunk on WordPress.org (push) Failing after 5s
PHP Code Checker / PHP Code Checker (push) Successful in 45s
PHPUnit / PHPUnit – PHP 7.4 (push) Successful in 1m3s
PHPUnit / PHPUnit – PHP 8.0 (push) Successful in 1m5s
PHPUnit / PHPUnit – PHP 8.1 (push) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.2 (push) Successful in 1m4s
PHPUnit / PHPUnit – PHP 8.3 (push) Successful in 1m2s
PHPUnit / PHPUnit – PHP 8.4 (push) Successful in 1m3s

Reviewed-on: #91
Co-authored-by: André Menrath <andre.menrath@posteo.de>
Co-committed-by: André Menrath <andre.menrath@posteo.de>
This commit is contained in:
André Menrath 2024-12-31 11:06:49 +01:00 committed by André Menrath
parent e8ec7a4ce6
commit 928fb690ae
3 changed files with 42 additions and 1 deletions

View file

@ -4,7 +4,6 @@
.wordpress-org
.wp-env.json
bin
CHANGELOG.md
CODE_OF_CONDUCT.md
composer.json
composer.lock

View file

@ -0,0 +1,21 @@
name: Plugin asset/readme update on WordPress.org
on:
push:
branches:
- main
jobs:
trunk:
name: Push assets to trunk on WordPress.org
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://code.forgejo.org/actions/checkout@v4
- name: WordPress.org plugin asset/readme update
uses: https://github.com/10up/action-wordpress-plugin-asset-update@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: event-bridge-for-activitypub

View file

@ -0,0 +1,21 @@
name: Deploy to WordPress.org
on:
push:
tags:
- "v*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: https://code.forgejo.org/actions/checkout@v4
- name: WordPress Plugin Deploy
uses: https://github.com/10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: event-bridge-for-activitypub