Skip to content

Commit 3984dc4

Browse files
committed
fix: update changelog and workflow
References: Codeinwp/visualizer-pro#469
1 parent 06b5bfd commit 3984dc4

File tree

3 files changed

+509
-50
lines changed

3 files changed

+509
-50
lines changed

.github/workflows/deploy-wporg.yml

+4-8
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,9 @@ jobs:
2323
SVN_USERNAME: ${{ secrets.SVN_THEMEISLE_USERNAME }}
2424
- name: Send update to the store
2525
env:
26-
THEMEISLE_ID: ${{ secrets.THEMEISLE_ID }}
27-
THEMEISLE_AUTH: ${{ secrets.THEMEISLE_STORE_AUTH }}
26+
PRODUCT_ID: ${{ secrets.THEMEISLE_ID }}
27+
AUTH_TOKEN: ${{ secrets.THEMEISLE_STORE_AUTH }}
2828
STORE_URL: ${{ secrets.THEMEISLE_STORE_URL }}
2929
BUILD_VERSION: ${{ steps.get_version.outputs.VERSION }}
30-
run: |
31-
if [ ! -z "$THEMEISLE_ID" ]; then
32-
STORE_JSON='{"version": "'$BUILD_VERSION'","id": "'$THEMEISLE_ID'","body": ""}';
33-
echo "$STORE_JSON";
34-
curl -X POST -H 'Cache-Control: no-cache' -H "Content-Type: application/json" -H "x-themeisle-auth: $THEMEISLE_AUTH" --data "$STORE_JSON" "$STORE_URL/wp-json/edd-so/v1/update_changelog/" > /dev/null
35-
fi
30+
GITHUB_TOKEN: ${{ secrets.BOT_TOKEN }}
31+
uses: Codeinwp/action-store-release@main

Gruntfile.js

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,10 @@ module.exports = function (grunt) {
55
'use strict';
66
grunt.initConfig({
77
wp_readme_to_markdown: {
8-
files: {
9-
'readme.md': 'readme.txt'
8+
plugin: {
9+
files: {
10+
'readme.md': 'readme.txt'
11+
},
1012
},
1113
},
1214
version: {
@@ -37,4 +39,4 @@ module.exports = function (grunt) {
3739
});
3840
grunt.loadNpmTasks('grunt-version');
3941
grunt.loadNpmTasks('grunt-wp-readme-to-markdown');
40-
};
42+
};

0 commit comments

Comments
 (0)