Skip to content

Commit

Permalink
Updated WP.org build process.
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmorrison committed Jan 26, 2024
1 parent f95bed0 commit 22d41a9
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions .github/workflows/wp.org-release.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
name: Deploy to WordPress.org
name: Deploy to WP.org
on:
push:
branches:
- master # Change to your branch
- trunk

jobs:
build:
Expand All @@ -13,7 +13,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '7.4' # Change to your PHP version
php-version: '8.2'
tools: composer:v2

- name: Validate composer.json and composer.lock
Expand All @@ -22,11 +22,18 @@ jobs:
- name: Install dependencies
run: composer install --prefer-dist --no-progress --no-suggest

# Build your plugin here if necessary
- name: Run Build Process
run: composer install --prefer-dist --no-progress --no-suggest

- name: Remove .github folder
run: rm -rf .github

- name: Remove development files
run: rm .gitignore .editorconfig composer.json composer.lock phpcs.xml

- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@v2
env:
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SLUG: your-plugin-slug # Change to your WordPress.org plugin slug
SLUG: cloudflare-access-sso

0 comments on commit 22d41a9

Please sign in to comment.