Skip to content

Commit 16d78a6

Browse files
author
anycodes
committed
init
0 parents  commit 16d78a6

File tree

10 files changed

+1600
-0
lines changed

10 files changed

+1600
-0
lines changed

.github/workflows/python-publish.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: publish package to serverless-hub
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: '3.x'
16+
- uses: actions/setup-node@v1
17+
with:
18+
node-version: 12
19+
- name: Install dependencies
20+
run: |
21+
python -m pip install --upgrade pip
22+
pip install setuptools wheel twine
23+
pip install requests
24+
- name: NPM install
25+
run: |
26+
npm run publish
27+
- name: Add publish file
28+
run: |
29+
wget https://serverless-registry.oss-cn-hangzhou.aliyuncs.com/publish-file/python3/hub-publish.py
30+
ls
31+
- name: Publish package
32+
env:
33+
publish_token: ${{ secrets.publish_token }}
34+
run: |
35+
ls
36+
python hub-publish.py

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
.DS_Store
2+
node_modules
3+
build
4+
*.log
5+
.idea
6+
.metadata
7+
jdt.ls-java-project
8+
lerna-debug.log
9+
.nyc_output
10+
coverage
11+
download
12+
*ui-spec.ts
13+
*slow-spec.ts
14+
dist
15+
lib
16+
.vscode
17+
.cache
18+
*/test
19+
*/src
20+
!fc/src
21+
!s-zip/src
22+
package-lock.json

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2020 Serverless Devs
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

package.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "@serverless-devs/scf-tencent",
3+
"version": "0.0.18",
4+
"description": "Serverless Devs Tool SCF Component For Tencent Cloud",
5+
"keywords": [
6+
"Serverless",
7+
"Framework",
8+
"Serverless-Devs",
9+
"Serverless-Tool",
10+
"Apigateway"
11+
],
12+
"main": "./src/index.js",
13+
"homepage": "https://www.serverless-devs.com",
14+
"author": "Serverless-Devs",
15+
"contributors": [
16+
"Anycodes"
17+
],
18+
"scripts": {
19+
"publish": "npm install --production"
20+
},
21+
"license": "MIT",
22+
"publishConfig": {
23+
"access": "public"
24+
},
25+
"repository": {
26+
"type": "git",
27+
"url": "https://github.com/Serverless-Devs/scf-tencent"
28+
},
29+
"dependencies": {
30+
"@serverless-devs/core": "^0.0.61",
31+
"@serverless-devs/s-core": "^0.0.28",
32+
"tencent-component-toolkit": "^2.5.12",
33+
"download": "^8.0.0",
34+
"type": "^2.0.0",
35+
"@serverless-devs/s-zip": "^0.0.8"
36+
}
37+
}

0 commit comments

Comments
 (0)