Skip to content

Commit 8f32f32

Browse files
authored
Merge pull request #16 from wp-graphql/ci/add-workflows
Build the plugin zip, deploy to WP
2 parents 777d53a + 4f7da11 commit 8f32f32

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Deploy to WordPress.org
2+
on:
3+
release:
4+
types: [ published ]
5+
jobs:
6+
tag:
7+
name: New release
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v3
12+
13+
- name: Setup PHP
14+
uses: shivammathur/setup-php@v2
15+
with:
16+
php-version: 8.1
17+
extensions: mbstring, intl
18+
tools: composer
19+
20+
- name: Install PHP dependencies
21+
run: |
22+
composer install --no-dev --optimize-autoloader
23+
24+
- name: WordPress Plugin Deploy
25+
uses: 10up/action-wordpress-plugin-deploy@stable
26+
env:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
29+
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
30+
SLUG: wpgraphql-acf

0 commit comments

Comments
 (0)