-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathjustfile
More file actions
26 lines (21 loc) · 910 Bytes
/
justfile
File metadata and controls
26 lines (21 loc) · 910 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
set windows-shell := ["powershell.exe", "-NoLogo", "-Command"]
generate:
podman run --rm -v ${PWD}:/local openapitools/openapi-generator-cli generate -i /local/openapi.yaml -g python -o /local/rlink_client_python_new --package-name rlink_client
renew: generate
cp "rlink_client_python/pyproject.toml" "rlink_client_python_new/pyproject.toml"
rmdir -R "rlink_client_python"
mv "rlink_client_python_new" "rlink_client_python"
mkdir "rlink_client_python/src"
mv "rlink_client_python/rlink_client" "rlink_client_python/src/rlink_client"
build: renew
uv build --directory rlink_client_python
copy-oa:
git checkout gh-pages
git checkout main openapi.yaml
git commit -am "Update openapi.yaml"
git push origin gh-pages
git checkout main
release: build copy-oa
git add rlink_client_python
git commit -am "Update rlink_client_python"
git push origin main