Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 14 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,16 +24,27 @@ jobs:
# 复制需要的文件,排除 .git、.github 等不需要的目录
rsync -av --exclude='.git' --exclude='.github' . /tmp/plugin-build/

- name: Extract version from manifest
id: get_version
run: |
VERSION=$(grep '^version:' /tmp/plugin-build/manifest.yaml | sed 's/version: //')
PACKAGE_NAME="qiniu-${VERSION}.difypkg"
echo "version=$VERSION" >> $GITHUB_OUTPUT
echo "package_name=$PACKAGE_NAME" >> $GITHUB_OUTPUT
echo "Extracted version: $VERSION"
echo "Package name: $PACKAGE_NAME"

- name: Package plugin
run: |
/tmp/dify-cli/dify-plugin-linux-amd64 plugin package -o qiniu.difypkg /tmp/plugin-build
PACKAGE_NAME="${{ steps.get_version.outputs.package_name }}"
/tmp/dify-cli/dify-plugin-linux-amd64 plugin package -o "$PACKAGE_NAME" /tmp/plugin-build

- name: Upload package to release
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_name: qiniu.difypkg
asset_path: ./qiniu.difypkg
asset_name: ${{ steps.get_version.outputs.package_name }}
asset_path: ./${{ steps.get_version.outputs.package_name }}
asset_content_type: application/octet-stream
4 changes: 2 additions & 2 deletions manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ meta:
entrypoint: main
language: python
version: '3.12'
version: 0.0.2
version: 0.0.1
plugins:
models:
- provider/qiniu.yaml
Expand All @@ -37,4 +37,4 @@ resource:
tool:
enabled: true
type: plugin
version: 0.1.1
version: 0.1.2