Skip to content

Commit

Permalink
Merge pull request #21 from oscarssanchez/deploy-workflow-wordpress
Browse files Browse the repository at this point in the history
Cleanup and add github actions to deploy to WP.org
  • Loading branch information
oscarssanchez authored Nov 28, 2022
2 parents aa0b94b + daaf6fb commit 3767dcf
Show file tree
Hide file tree
Showing 19 changed files with 135 additions and 1,854 deletions.
27 changes: 27 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/.git export-ignore
/.github export-ignore
/.wordpress-org export-ignore
/.husky export-ignore export-ignore
/vendor/10up export-ignore
/vendor/automattic export-ignore
/vendor/bin export-ignore
/vendor/dealerdirect export-ignore
/vendor/phpcompatibility export-ignore
/vendor/sirbrillig export-ignore
/vendor/squizlabs export-ignore
/vendor/wp-coding-standards export-ignore
/node_modules export-ignore

.editorconfig export-ignore
.gitattributes export-ignore
.eslintrc export-ignore
.gitignore export-ignore
.lintstagedrc.json export-ignore
.npmrc export-ignore
.nvmrc export-ignore
composer.json export-ignore
composer.lock export-ignore
package.json export-ignore
package-lock.json export-ignore
phpcs.xml export-ignore
README.md export-ignore
21 changes: 21 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Deploy to WordPress.org
on:
push:
tags:
- "*"
jobs:
tag:
name: New tag
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Build
run: |
npm install
npm run build
- name: WordPress Plugin Deploy
uses: 10up/action-wordpress-plugin-deploy@stable
env:
SVN_PASSWORD: ${{ secrets.SVN_PASSWORD }}
SVN_USERNAME: ${{ secrets.SVN_USERNAME }}
SLUG: ayudante-ai
5 changes: 0 additions & 5 deletions assets/css/admin/admin-style.css

This file was deleted.

1 change: 0 additions & 1 deletion assets/css/frontend/base/index.css

This file was deleted.

1 change: 0 additions & 1 deletion assets/css/frontend/components/index.css

This file was deleted.

7 changes: 0 additions & 7 deletions assets/css/frontend/global/colors.css

This file was deleted.

2 changes: 0 additions & 2 deletions assets/css/frontend/global/index.css

This file was deleted.

13 changes: 0 additions & 13 deletions assets/css/frontend/global/media-queries.css

This file was deleted.

16 changes: 0 additions & 16 deletions assets/css/frontend/style.css

This file was deleted.

6 changes: 0 additions & 6 deletions assets/css/shared/shared-style.css

This file was deleted.

3 changes: 0 additions & 3 deletions assets/js/admin/admin.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/js/frontend/components/.gitkeep

This file was deleted.

3 changes: 0 additions & 3 deletions assets/js/frontend/frontend.js

This file was deleted.

3 changes: 0 additions & 3 deletions assets/js/shared/shared.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/svg/.gitkeep

This file was deleted.

6 changes: 3 additions & 3 deletions ayudante-ai.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
* Description: Enhance your WordPress site with artificial intelligence.
* Author: Oscar Sanchez
* Author URI: http://oscarssanchez.com/
* Version: 0.0.1
* Stable tag: 0.0.1
* Version: 1.0.0
* Stable tag: 1.0.0
* Requires at least: 6.1
* Tested up to: 6.1
* License: GPL v3 or later - http://www.gnu.org/licenses/gpl-3.0.html
Expand All @@ -17,7 +17,7 @@
*/

// Useful global constants.
define( 'AYUDANTEAI_PLUGIN_VERSION', '0.1.0' );
define( 'AYUDANTEAI_PLUGIN_VERSION', '1,0.0' );
define( 'AYUDANTEAI_PLUGIN_URL', plugin_dir_url( __FILE__ ) );
define( 'AYUDANTEAI_PLUGIN_PATH', plugin_dir_path( __FILE__ ) );
define( 'AYUDANTEAI_PLUGIN_INC', AYUDANTEAI_PLUGIN_PATH . 'includes/' );
Expand Down
2 changes: 0 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
"php": ">=7.0"
},
"require-dev": {
"phpunit/phpunit": "^9.5",
"phpcompatibility/phpcompatibility-wp": "*",
"10up/phpcs-composer": "dev-master"
},
"autoload": {
Expand Down
Loading

0 comments on commit 3767dcf

Please sign in to comment.