Skip to content
This repository has been archived by the owner on Jun 23, 2023. It is now read-only.

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Dec 10, 2022
1 parent e9add18 commit 2854b8a
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ jobs:
# here we replace "title": "$:/plugins/linonetwo/tw-example-plugin", to "title": "linonetwo/tw-example-plugin",
# so it can be used in tiddly-gittly/tw5-plugin-packer to find output path
content="${content//$\:\/plugins\//}"
content="${content//$\:\/themes\//}"
# replace plugin-type with pluginType
content="${content//$'plugin-type'/'pluginType'}"
# end of optional handling for multi line json
echo "::set-output name=pluginInfoJSON::$content"
Expand All @@ -67,11 +70,11 @@ jobs:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# this should be the same as `scripts/run-action.mjs`
- uses: tiddly-gittly/tw5-plugin-packer@v0.0.10
- uses: tiddly-gittly/tw5-plugin-packer@v0.0.12
with:
minify: 'true'
# here we read plugin author and name from pluginInfoJSON, and pluginInfoJSON is read in the step above with id `setPluginInfoJSON`
source: 'dist/plugins/${{fromJson(steps.setPluginInfoJSON.outputs.pluginInfoJSON).title}}'
source: 'dist/${{fromJson(steps.setPluginInfoJSON.outputs.pluginInfoJSON).pluginType}}s/${{fromJson(steps.setPluginInfoJSON.outputs.pluginInfoJSON).title}}'
output: 'dist/out'
uglifyjs-options: '{ "warnings": false, "ie8": false, "safari10": false }'
cleancss-options: '{ "compatibility": "*", "level": 2 }'
Expand Down

0 comments on commit 2854b8a

Please sign in to comment.