Skip to content

Commit

Permalink
init dipper
Browse files Browse the repository at this point in the history
  • Loading branch information
rsonghuster committed Aug 26, 2024
1 parent 3a1bfbf commit a436c90
Show file tree
Hide file tree
Showing 6 changed files with 205 additions and 34 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/registry-publish.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
name: publish package to registry

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

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v2
with:
node-version: 16
Expand Down
6 changes: 3 additions & 3 deletions publish.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Edition: 3.0.0
Type: Project
Name: start-word2pdf-v3
Name: start-word2pdf-dipper
Provider:
- 阿里云
Version: 0.0.6
Version: 0.0.1
Description: 本案例是将 word 转 pdf 的逻辑封装成一个python函数,快速创建并部署到阿里云函数计算 FC。
HomePage: https://github.com/devsapp/start-word2pdf
HomePage: https://github.com/devsapp/start-word2pdf/tree/dipper
Organization: 阿里云函数计算(FC)
Effective: Public
Tags:
Expand Down
182 changes: 181 additions & 1 deletion readme.md
31 changes: 5 additions & 26 deletions src/readme.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,7 @@

> 注:当前项目为 Serverless Devs 应用,由于应用中会存在需要初始化才可运行的变量(例如应用部署地区、函数名等等),所以**不推荐**直接 Clone 本仓库到本地进行部署或直接复制 s.yaml 使用,**强烈推荐**通过 `s init ${模版名称}` 的方法或应用中心进行初始化,详情可参考[部署 & 体验](#部署--体验)
# start-word2pdf-v3 帮助文档
<p align="center" class="flex justify-center">
<a href="https://www.serverless-devs.com" class="ml-1">
<img src="http://editor.devsapp.cn/icon?package=start-word2pdf-v3&type=packageType">
</a>
<a href="http://www.devsapp.cn/details.html?name=start-word2pdf-v3" class="ml-1">
<img src="http://editor.devsapp.cn/icon?package=start-word2pdf-v3&type=packageVersion">
</a>
<a href="http://www.devsapp.cn/details.html?name=start-word2pdf-v3" class="ml-1">
<img src="http://editor.devsapp.cn/icon?package=start-word2pdf-v3&type=packageDownload">
</a>
</p>
# start-word2pdf-dipper 帮助文档

<description>

Expand All @@ -22,7 +11,7 @@

<codeUrl>

- [:smiley_cat: 代码](https://github.com/devsapp/start-word2pdf/tree/V3/src)


</codeUrl>
<preview>
Expand Down Expand Up @@ -62,17 +51,11 @@

<appcenter>

- :fire: 通过 [Serverless 应用中心](https://fcnext.console.aliyun.com/applications/create?template=start-word2pdf-v3)
[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://fcnext.console.aliyun.com/applications/create?template=start-word2pdf-v3) 该应用。
:fire: 通过 [Dipper 应用中心](https://devs.console.aliyun.com/applications/createtemplate=start-word2pdf-dipper)[![Deploy with Severless Devs](https://img.alicdn.com/imgextra/i1/O1CN01w5RFbX1v45s8TIXPz_!!6000000006118-55-tps-95-28.svg)](https://devs.console.aliyun.com/applications/createtemplate=start-word2pdf-dipper) 该应用。

</appcenter>
<deploy>

- 通过 [Serverless Devs Cli](https://www.serverless-devs.com/serverless-devs/install) 进行部署:
- [安装 Serverless Devs Cli 开发者工具](https://www.serverless-devs.com/serverless-devs/install) ,并进行[授权信息配置](https://docs.serverless-devs.com/fc/config)
- 初始化项目:`s init start-word2pdf-v3 -d start-word2pdf-v3`
- 进入项目,并进行项目部署:`cd start-word2pdf-v3 && s deploy -y`


</deploy>

## 案例介绍
Expand Down Expand Up @@ -174,10 +157,6 @@ cryptography==3.4.8
urllib3==1.26.2
```

### 二次开发

您可以通过云端控制台的开发功能进行二次开发。如果您之前是在本地创建的项目案例,也可以在本地项目目录`start-word2pdf-v3`文件夹下,对项目进行二次开发。开发完成后,可以通过`s deploy`进行快速部署。

</usedetail>

## 注意事项
Expand All @@ -195,7 +174,7 @@ urllib3==1.26.2

<p align="center">

| <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407298906_20211028074819117230.png" width="130px" > | <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407044136_20211028074404326599.png" width="130px" > | <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407252200_20211028074732517533.png" width="130px" > |
| <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407298906_20211028074819117230.png" width="130px" > | <img src="https://serverless-article-picture.oss-cn-hangzhou.aliyuncs.com/1635407044136_20211028074404326599.png" width="130px" > | <img src="https://images.devsapp.cn/fc-faq/33947367.png" width="130px" > |
| --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| <center>微信公众号:`serverless`</center> | <center>微信小助手:`xiaojiangwh`</center> | <center>钉钉交流群:`33947367`</center> |
</p>
Expand Down
3 changes: 2 additions & 1 deletion src/s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@ name: word2pdf
access: '{{ access }}'
vars:
region: '{{ region }}'

resources:
word2pdf:
component: fc3@0.0.34
component: fc3
props:
region: ${vars.region}
runtime: custom
Expand Down
10 changes: 10 additions & 0 deletions src/variable.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
services: #服务变量
word2pdf:
ossBucket:
title: OSS 存储桶名
type: string
default: ""
description: OSS 存储桶名
x-bucket:
dependency:
- region

0 comments on commit a436c90

Please sign in to comment.