Skip to content

Commit

Permalink
prepare release
Browse files Browse the repository at this point in the history
  • Loading branch information
cleissonbr committed Apr 21, 2023
1 parent 5795db0 commit 6c0a2b9
Show file tree
Hide file tree
Showing 6 changed files with 225 additions and 191 deletions.
4 changes: 2 additions & 2 deletions article-gen.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* Description: Post generator using artificial intelligence (GPT)
* Requires at least: 5.8
* Requires PHP: 7.4
* Version: 0.7.0
* Version: ARTICLEGEN_SINCE
* Tested upto: 6.1.1
* Author: Cleisson Barbosa<cleissonbarbosa68@gmail.com>
* License: GPL-2.0-or-later
Expand All @@ -26,7 +26,7 @@ final class Article_Gen {
*
* @var string
*/
const VERSION = '0.7.0';
const VERSION = 'ARTICLEGEN_SINCE';

/**
* Plugin slug.
Expand Down
9 changes: 5 additions & 4 deletions assets/js/version-replace.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ const fs = require( 'fs-extra' );
const replace = require( 'replace-in-file' );

const pluginFiles = [
'includes/**/*',
'templates/*',
'src/*',
'article-gen.php',
'dist/includes/**/*.php',
'dist/templates/*',
'dist/build/*',
'dist/languages/*',
'dist/article-gen.php',
];

const { version } = JSON.parse( fs.readFileSync( 'package.json' ) );
Expand Down
13 changes: 12 additions & 1 deletion assets/js/zip.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,19 @@ exec(

console.log( `Finished copying files.` );

asyncExec('npm run version',{},() => {
console.log( `Finished versioning files.` );
}).catch( ( error ) => {
console.log(
chalk.red(
`Could not version files.`
)
);
console.log( error );
} );

asyncExec(
'composer install -o --no-dev',
'composer install -o --no-dev --ignore-platform-reqs',
{
cwd: dest,
},
Expand Down
9 changes: 8 additions & 1 deletion changelog.txt
Original file line number Diff line number Diff line change
@@ -1 +1,8 @@
### Changelogs
### Changelogs

Version 0.7.0 - 04/08/2023 (mm/dd/yyyy)
- Generate post with OpenAi GPT model with Gutenberg block
- Insert your organization on Settings

Version 0.8.0 - 04/21/2023 (mm/mm/yyyy)
- Add Image generator Gutenberg block
Loading

0 comments on commit 6c0a2b9

Please sign in to comment.