Skip to content

Commit 9f2a0f1

Browse files
committed
minor: add tencent package publish workflow
1 parent bfad5a5 commit 9f2a0f1

2 files changed

Lines changed: 31 additions & 3 deletions

File tree

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Runtime python package
2+
3+
on:
4+
push:
5+
tags:
6+
- "bk-plugin-runtime-v*.*.*"
7+
workflow_dispatch:
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
- name: Set up Python 3.6
15+
uses: actions/setup-python@v2
16+
with:
17+
python-version: 3.6
18+
19+
- name: Set up Poetry
20+
uses: abatilo/actions-poetry@v2.0.0
21+
with:
22+
poetry-version: 1.1.9
23+
24+
- name: Package and Publish
25+
run: |
26+
cd runtime/bk-plugin-runtime
27+
rm -rf benchmark
28+
rm -rf tests
29+
poetry config pypi-token.pypi ${{ secrets.RUNTIME_PYPI_TOKEN }}
30+
poetry publish --build

.github/workflows/runtime_python_package_poetry.yml renamed to .github/workflows/runtime_python_package_tencent.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ jobs:
2626
cd runtime/bk-plugin-runtime
2727
rm -rf benchmark
2828
rm -rf tests
29-
poetry config pypi-token.pypi ${{ secrets.RUNTIME_PYPI_TOKEN }}
30-
poetry publish
3129
poetry config repositories.tencent https://mirrors.tencent.com/tencent_pypi/simple
3230
poetry config http-basic.tencent ${{ secrets.TENCENT_PYPI_USER }} ${{ secrets.TENCENT_PYPI_TOKEN }}
33-
poetry publish -r tencent
31+
poetry publish -r tencent --build

0 commit comments

Comments
 (0)