Skip to content

Commit e112aa5

Browse files
nepetcdecker
authored andcommitted
ci: Add pipeline to publish glcli
Remove publishing the python cli from the pipelines and add publishing the rust cli to the pipelines Signed-off-by: Peter Neuroth <[email protected]>
1 parent 3fc664f commit e112aa5

File tree

3 files changed

+9
-22
lines changed

3 files changed

+9
-22
lines changed

gitlab/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
## Gitlab Pipelines
2-
There are 5 Greenlight packaged binaries/libraries that are published - 2 Python packages and 3 Rust crates.
2+
There are 5 Greenlight packaged binaries/libraries that are published - 1 Python packages and 4 Rust crates.
33

44
The builds are triggered by certain tag formats. Make sure to include a patch as well since the Rust compiler requires that (applicable to `gl-client-py` as well).
55

@@ -11,9 +11,9 @@ If a tagged release doesn't work, it can be retried by adding an `_N` suffix aft
1111

1212
### PyPI
1313
* gl-client-py - `glclientpy_YYYYMMDD-x.x.x`
14-
* greenlight-cli - `glcli_YYYYMMDD-x.x.x`
1514

1615
### crates.io
1716
* gl-client - `glclient_YYYYMMDD-x.x.x`
1817
* gl-plugin - `glplugin_YYYYMMDD-x.x.x`
1918
* gl-signerproxy - `glsignerproxy_YYYYMMDD-x.x.x`
19+
* gl-cli -`glcli_YYYYMMDD-x.x.x`

gitlab/build-crates.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,10 @@ build_gl_signerproxy:
3333
- if: $CI_COMMIT_TAG =~ /glsignerproxy_\d{8}(_[1-9][0-9]?)?\-.*/
3434
variables:
3535
PKG_NAME: gl-signerproxy
36+
37+
build_gl_cli:
38+
extends: .build_rust_prep
39+
rules:
40+
- if: $CI_COMMIT_TAG =~ /glcli_\d{8}(_[1-9][0-9]?)?\-.*/
41+
variables:
42+
PKG_NAME: gl-cli

gitlab/build-pypi.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -17,23 +17,3 @@ build_gl_client_py:
1717
expire_in: 2 weeks
1818
paths:
1919
- "target/wheels/*"
20-
21-
build_glcli:
22-
extends: .build_setup
23-
when: manual
24-
rules:
25-
- if: $CI_COMMIT_TAG =~ /glcli_\d{8}(_[1-9][0-9]?)?\-.*/
26-
before_script:
27-
- export NEW_VER=$(echo ${CI_COMMIT_TAG} | cut -d'-' -f2)
28-
- sed -i "s/^version = \".*\"/version = \"$NEW_VER\"/" tools/glcli/pyproject.toml
29-
- . $HOME/.cargo/env # sh doesn't have the correct PATH
30-
script:
31-
- cd tools/glcli
32-
- poetry config pypi-token.pypi ${PYPI_TOKEN}
33-
- poetry build
34-
- poetry publish
35-
- ls -lh dist
36-
artifacts:
37-
expire_in: 2 weeks
38-
paths:
39-
- "tools/glcli/dist/*"

0 commit comments

Comments
 (0)