Skip to content

Commit

Permalink
Merge pull request #13 from devsapp/fix/invoke
Browse files Browse the repository at this point in the history
fix:invoke return
  • Loading branch information
rsonghuster authored Nov 6, 2024
2 parents b4067ca + 2a88d82 commit b39baa3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/registry-publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
name: publish package to registry

on:
release:
types: [created]
push:
branches:
- V3

jobs:
deploy:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: git config --global core.symlinks false
shell: bash
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: 16
Expand All @@ -25,4 +28,4 @@ jobs:
s registry login --token ${{ secrets.alibaba_registry_v3_publish_token }}
- name: release prod
run: |
s registry publish
s registry publish
2 changes: 1 addition & 1 deletion publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Type: Project
Name: start-pdf2img-v3
Provider:
- 阿里云
Version: 0.0.5
Version: 0.0.6
Description: 本案例是将 pdf 转 img的逻辑封装成一个python函数,快速创建并部署到阿里云函数计算 FC。
HomePage: https://github.com/devsapp/start-pdf2img
Organization: 阿里云函数计算(FC)
Expand Down
4 changes: 2 additions & 2 deletions src/code/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ def handler(event, context):
return "dest object name must be zip file, for example: test.zip"

bucket.put_object_from_file(dst_object, '/tmp/test.zip')

return 'SUCC'
print("'SUCC'")
return {"code": "Success"}

0 comments on commit b39baa3

Please sign in to comment.