From 5975baaa6ff5b6722df52a2c7af8f615b9915f6e Mon Sep 17 00:00:00 2001 From: mscherer Date: Fri, 5 Dec 2025 01:51:36 +0100 Subject: [PATCH] Add GitHub Action for WordPress.org deployment --- .github/workflows/deploy.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..0338999 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,30 @@ +name: Deploy to WordPress.org + +on: + release: + types: [published] + +jobs: + deploy: + name: Deploy to WordPress.org + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: '8.2' + tools: composer:v2 + + - name: Install production dependencies + run: composer install --no-dev --prefer-dist --no-progress --optimize-autoloader + + - name: WordPress Plugin Deploy + uses: 10up/action-wordpress-plugin-deploy@stable + env: + SVN_USERNAME: ${{ secrets.SVN_USERNAME }} + SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }} + SLUG: djot-markup-for-wp