Skip to content

Commit bd94e42

Browse files
committed
use new ci
1 parent 1019fd0 commit bd94e42

1 file changed

Lines changed: 5 additions & 15 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,16 @@ jobs:
1010
runs-on: ubuntu-latest
1111
env:
1212
REPO_NAME: ${{ github.event.repository.name }}
13-
13+
1414
steps:
1515
- uses: actions/checkout@main
1616
- uses: davidkhala/uv-buildpack@main
17-
- name: Download dify-plugin-daemon
18-
run: |
19-
LATEST_RELEASE=$(curl -s https://api.github.com/repos/langgenius/dify-plugin-daemon/releases/latest)
20-
DOWNLOAD_URL=$(echo $LATEST_RELEASE | jq -r '.assets[] | select(.name | contains("dify-plugin-linux-amd64")) | .browser_download_url' | head -1)
21-
curl -L -o ../dify $DOWNLOAD_URL
22-
chmod +x ../dify
23-
../dify --version
17+
2418
- name: Generate requirements.txt (consumed by dify)
2519
run: uv pip compile pyproject.toml -o requirements.txt
26-
27-
- name: Build Dify plugin package
28-
run: |
29-
cd ..
30-
./dify plugin package "$REPO_NAME"
31-
mv "$REPO_NAME.difypkg" "${GITHUB_WORKSPACE}/$REPO_NAME.difypkg"
32-
20+
- uses: davidkhala/build-dify-plugin@main
21+
with:
22+
pyproject-directory: .
3323
- name: Get tag name
3424
id: tag
3525
run: |

0 commit comments

Comments
 (0)