Skip to content

Commit

Permalink
Deploy to WP.org
Browse files Browse the repository at this point in the history
  • Loading branch information
joanrodas committed Jul 2, 2023
1 parent ad81245 commit 7be8ce0
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/.git
/.github
/node_modules
/.wordpress-org

.editorconfig
.distignore
.eslintrc.js
.gitattributes
.gitignore
.stylelintrc.js
postcss.config.js
tailwind.config.js
tsconfig.json
webpack.config.js
package.json
yarn.lock
readme.md
composer.lock
19 changes: 19 additions & 0 deletions .github/workflows/assets.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Plugin assets or readme update

on:
push:
branches:
- main
jobs:
main:
name: Push to trunk
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: WordPress.org plugin assets/readme update
uses: 10up/action-wordpress-plugin-asset-update@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
26 changes: 26 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Deploy to WordPress.org

on:
push:
tags:
- "*"
jobs:
tag:
name: On new tag
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3

- name: Set Node.js 16.x
uses: actions/setup-node@v3
with:
node-version: 16.x
- run: composer install && yarn && yarn build

- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@master
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: plugin-placeholder
Empty file.

0 comments on commit 7be8ce0

Please sign in to comment.