Skip to content

Commit 70773c6

Browse files
committed
add publish cd
1 parent 1084111 commit 70773c6

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
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: Build
25+
run: |
26+
npm run build
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.alibaba_registry_publish_token }}
34+
run: |
35+
ls
36+
python hub-publish.py

0 commit comments

Comments
 (0)