Skip to content

Commit

Permalink
fix: release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
MemoryZy committed Jun 29, 2024
1 parent c87b657 commit 4c2af30
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 25 deletions.
29 changes: 5 additions & 24 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,34 +88,15 @@ jobs:
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
run: ./gradlew publishPlugin

- name: Rename the Signature File
run: |
NAME="${{ steps.properties.outputs.name }}"
VERSION="${{ steps.properties.outputs.version }}"
PLUGIN_ARTIFACT_NAME="$NAME-$VERSION.zip"
PLUGIN_SIGNED_ARTIFACT_NAME="$NAME-$VERSION-signed.zip"
echo "pluginName: $PLUGIN_ARTIFACT_NAME"
echo "pluginSignedName: $PLUGIN_SIGNED_ARTIFACT_NAME"
echo "Plugin Artifact Before:"
ls ./build/distributions
rm -f ./build/distributions/$PLUGIN_ARTIFACT_NAME
echo "Remove Plugin Artifact:"
ls ./build/distributions
mv ./build/distributions/$PLUGIN_SIGNED_ARTIFACT_NAME ./build/distributions/$PLUGIN_ARTIFACT_NAME
echo "Plugin Artifact After:"
ls ./build/distributions
# Upload artifact as a release asset
- name: Upload Release Asset
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ github.event.release.tag_name }} ./build/distributions/*
run: |
NAME="${{ steps.properties.outputs.name }}"
VERSION="${{ steps.properties.outputs.version }}"
PLUGIN_SIGNED_ARTIFACT_NAME="$NAME-$VERSION-signed.zip"
gh release upload ${{ github.event.release.tag_name }} ./build/distributions/$PLUGIN_SIGNED_ARTIFACT_NAME
# Create a pull request
- name: Create Pull Request
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ public void actionPerformed(@NotNull AnActionEvent event) {
String text = StrUtil.trim(PlatformUtil.getEditorContent(event));
// todo 编辑器文本不属于Json,但是选中文本属于Json时,可以
JsonStructureOnTwTitleAction.structuring(text, project);

}

@Override
Expand Down

0 comments on commit 4c2af30

Please sign in to comment.