diff --git a/.github/workflows/generate-zip.yml b/.github/workflows/generate-zip.yml index e2f9646a9c..79aae8b7e0 100644 --- a/.github/workflows/generate-zip.yml +++ b/.github/workflows/generate-zip.yml @@ -7,6 +7,21 @@ on: description: 'Git Commit Ref (branch, tag, or hash)' required: true type: string + production: + description: 'Is this a production build?' + default: false + type: boolean + slack_channel: + description: 'Slack channel ID to post to' + default: '' + required: false + type: string + slack_thread: + description: 'Slack thread to post to' + default: '' + required: false + type: string + jobs: build: @@ -14,3 +29,7 @@ jobs: with: ref: ${{ github.event.inputs.ref }} plugin_slug: give + production: ${{ github.event.inputs.production }} + slack_channel: ${{ github.event.inputs.slack_channel }} + slack_thread: ${{ github.event.inputs.slack_thread }} + secrets: inherit diff --git a/package.json b/package.json index de8ea96f90..76952a7db1 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,17 @@ "url": "https://github.com/impress-org/give/issues" }, "homepage": "https://github.com/impress-org/give#readme", + "_zipname": "give", + "_version_files": [ + { + "file": "give.php", + "regex": "(define\\('GIVE_VERSION', ')([^']+)" + }, + { + "file": "give.php", + "regex": "(Version: )([^\\s]+)" + } + ], "devDependencies": { "@babel/core": "^7.13.10", "@babel/eslint-parser": "^7.13.10",