Skip to content

Commit

Permalink
added actions to deploy on wp.org
Browse files Browse the repository at this point in the history
  • Loading branch information
nk-o committed Nov 14, 2023
1 parent 316e242 commit f8884c7
Show file tree
Hide file tree
Showing 6 changed files with 409 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .distignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Directories to ignore
/.git
/.github
/.vscode
/.wordpress-org
/node_modules
/src
/vendor

# Files to ignore
/.*
/composer.json
/composer.lock
/LICENSE.md
/package.json
/package-lock.json
/phpcs.xml
/phpcs.xml.dist
/phpunit.xml
/README.md
/webpack.config.js
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,9 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = tab

[*.yml]
indent_style = space
indent_size = 2

[*.md]
trim_trailing_whitespace = false
22 changes: 22 additions & 0 deletions .github/workflows/push-asset-readme-update.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Plugin Asset/Readme Update

on:
workflow_dispatch:
push:
branches:
- main

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

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

on:
workflow_dispatch:
push:
tags:
- 'v*'

jobs:
tag:
name: New release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SLUG: ai-mind
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
Loading

0 comments on commit f8884c7

Please sign in to comment.