File tree Expand file tree Collapse file tree 2 files changed +16
-5
lines changed
Expand file tree Collapse file tree 2 files changed +16
-5
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,27 @@ jobs:
2424 # 复制需要的文件,排除 .git、.github 等不需要的目录
2525 rsync -av --exclude='.git' --exclude='.github' . /tmp/plugin-build/
2626
27+ - name : Extract version from manifest
28+ id : get_version
29+ run : |
30+ VERSION=$(grep '^version:' /tmp/plugin-build/manifest.yaml | sed 's/version: //')
31+ PACKAGE_NAME="qiniu-${VERSION}.difypkg"
32+ echo "version=$VERSION" >> $GITHUB_OUTPUT
33+ echo "package_name=$PACKAGE_NAME" >> $GITHUB_OUTPUT
34+ echo "Extracted version: $VERSION"
35+ echo "Package name: $PACKAGE_NAME"
36+
2737 - name : Package plugin
2838 run : |
29- /tmp/dify-cli/dify-plugin-linux-amd64 plugin package -o qiniu.difypkg /tmp/plugin-build
39+ PACKAGE_NAME="${{ steps.get_version.outputs.package_name }}"
40+ /tmp/dify-cli/dify-plugin-linux-amd64 plugin package -o "$PACKAGE_NAME" /tmp/plugin-build
3041
3142 - name : Upload package to release
3243 uses : actions/upload-release-asset@v1
3344 env :
3445 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3546 with :
3647 upload_url : ${{ github.event.release.upload_url }}
37- asset_name : qiniu.difypkg
38- asset_path : ./qiniu.difypkg
48+ asset_name : ${{ steps.get_version.outputs.package_name }}
49+ asset_path : ./${{ steps.get_version.outputs.package_name }}
3950 asset_content_type : application/octet-stream
Original file line number Diff line number Diff line change 1717 entrypoint : main
1818 language : python
1919 version : ' 3.12'
20- version : 0.0.2
20+ version : 0.0.1
2121plugins :
2222 models :
2323 - provider/qiniu.yaml
@@ -37,4 +37,4 @@ resource:
3737 tool :
3838 enabled : true
3939type : plugin
40- version : 0.1.1
40+ version : 0.1.2
You can’t perform that action at this time.
0 commit comments